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, execute
public void handleRequest(InputStream input, OutputStream output, com.amazonaws.services.lambda.runtime.Context context) throws IOException
handleRequest
in interface com.amazonaws.services.lambda.runtime.RequestStreamHandler
IOException
protected 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 LocalFunctionRegistry
functionName
- The function nameprotected String resolveFunctionName(Environment env)
env
- The environmentprotected Environment startEnvironment(ApplicationContext applicationContext)
applicationContext
- the application context with the environment