Class AbstractRequestStreamHandlerMicronautLambdaRuntime<RequestType,ResponseType>
java.lang.Object
io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime<RequestType,ResponseType,InputStream,OutputStream>
io.micronaut.function.aws.runtime.AbstractRequestStreamHandlerMicronautLambdaRuntime<RequestType,ResponseType>
- Type Parameters:
RequestType
- The expected request object. This is the model class that the event JSON is de-serialized toResponseType
- The expected Lambda function response object. Responses will be written to this model object
- All Implemented Interfaces:
io.micronaut.context.ApplicationContextProvider
,AwsLambdaRuntimeApi
public abstract class AbstractRequestStreamHandlerMicronautLambdaRuntime<RequestType,ResponseType>
extends AbstractMicronautLambdaRuntime<RequestType,ResponseType,InputStream,OutputStream>
Class that can be used as an entry point for an AWS Lambda custom runtime with a
MicronautRequestStreamHandler
handler.- Since:
- 4.2.2
- Author:
- sdelamo
- See Also:
-
Field Summary
Fields inherited from class io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime
handler, handlerRequestType, handlerResponseType, requestType, responseType, userAgent
Fields inherited from interface io.micronaut.function.aws.runtime.AwsLambdaRuntimeApi
ERROR_TEMPLATE, INIT_ERROR_URI, INVOCATION_TEMPLATE, LAMBDA_RUNTIME_FUNCTION_ERROR_TYPE, NEXT_INVOCATION_URI, PATH_REQUEST_ID
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime
createApplicationContextBuilderWithArgs, createEnvironmentHandler, createHandler, createHandlerRequest, createNextInvocationHttpRequest, createRequestHandler, createRequestStreamHandler, createResponse, createRuntimeContext, decorateWithUserAgent, getApplicationContext, getEnv, getLogLevel, handleInvocationException, handleInvocationForRequestHandler, handleInvocationForRequestStreamHandler, log, logn, logn, parseHandlerClass, populateUserAgent, propagateTraceId, reportInitializationError, respond, run, serializeAsByteArray, shouldLog, startRuntimeApiEventLoop, valueFromContent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.function.aws.runtime.AwsLambdaRuntimeApi
errorUri, initializationErrorRequest, invocationErrorRequest, invocationResponseRequest, responseUri
-
Constructor Details
-
AbstractRequestStreamHandlerMicronautLambdaRuntime
public AbstractRequestStreamHandlerMicronautLambdaRuntime()
-
-
Method Details
-
validateHandler
protected void validateHandler() throws io.micronaut.context.exceptions.ConfigurationException- Overrides:
validateHandler
in classAbstractMicronautLambdaRuntime<RequestType,
ResponseType, InputStream, OutputStream> - Throws:
io.micronaut.context.exceptions.ConfigurationException
- if the handler is not of type RequestHandler or RequestStreamHandler
-