public class AlexaFunction
extends java.lang.Object
implements com.amazonaws.services.lambda.runtime.RequestStreamHandler, java.lang.AutoCloseable, java.io.Closeable, io.micronaut.context.ApplicationContextProvider
Modifier and Type | Field and Description |
---|---|
protected io.micronaut.context.ApplicationContext |
applicationContext |
protected com.amazon.ask.SkillStreamHandler |
skillStreamHandler |
Constructor and Description |
---|
AlexaFunction()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected io.micronaut.context.ApplicationContext |
buildApplicationContext() |
void |
close() |
io.micronaut.context.ApplicationContext |
getApplicationContext() |
void |
handleRequest(java.io.InputStream input,
java.io.OutputStream output,
com.amazonaws.services.lambda.runtime.Context context) |
protected io.micronaut.context.ApplicationContextBuilder |
newApplicationContextBuilder()
Builds a new builder.
|
protected io.micronaut.context.ApplicationContext applicationContext
protected com.amazon.ask.SkillStreamHandler skillStreamHandler
@NonNull protected io.micronaut.context.ApplicationContextBuilder newApplicationContextBuilder()
ApplicationContextBuilder
@NonNull protected io.micronaut.context.ApplicationContext buildApplicationContext()
public void handleRequest(java.io.InputStream input, java.io.OutputStream output, com.amazonaws.services.lambda.runtime.Context context) throws java.io.IOException
handleRequest
in interface com.amazonaws.services.lambda.runtime.RequestStreamHandler
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public io.micronaut.context.ApplicationContext getApplicationContext()
getApplicationContext
in interface io.micronaut.context.ApplicationContextProvider