public class MicronautRequestStreamHandler extends StreamFunctionExecutor<com.amazonaws.services.lambda.runtime.Context> implements com.amazonaws.services.lambda.runtime.RequestStreamHandler
An implementation of the RequestStreamHandler for Micronaut
| Constructor and Description |
|---|
MicronautRequestStreamHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected ApplicationContext |
buildApplicationContext(com.amazonaws.services.lambda.runtime.Context context) |
void |
handleRequest(InputStream input,
OutputStream output,
com.amazonaws.services.lambda.runtime.Context context) |
protected ExecutableMethod<Object,Object> |
resolveFunction(LocalFunctionRegistry localFunctionRegistry,
String functionName)
Resolve a function from the
LocalFunctionRegistry. |
protected String |
resolveFunctionName(Environment env)
Resolves the function name to execution for the environment.
|
protected Environment |
startEnvironment(ApplicationContext applicationContext)
Start the environment specified.
|
execute, executepublic void handleRequest(InputStream input, OutputStream output, com.amazonaws.services.lambda.runtime.Context context) throws IOException
handleRequest in interface com.amazonaws.services.lambda.runtime.RequestStreamHandlerIOExceptionprotected ApplicationContext buildApplicationContext(com.amazonaws.services.lambda.runtime.Context context)
context - A platform specific context objectApplicationContext to useprotected ExecutableMethod<Object,Object> resolveFunction(LocalFunctionRegistry localFunctionRegistry, String functionName)
LocalFunctionRegistry.localFunctionRegistry - The LocalFunctionRegistryfunctionName - The function nameprotected String resolveFunctionName(Environment env)
env - The environmentprotected Environment startEnvironment(ApplicationContext applicationContext)
applicationContext - the application context with the environment