Class ApiGatewayProxyServletRequest<B>
java.lang.Object
io.micronaut.function.aws.proxy.ApiGatewayServletRequest<B,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
io.micronaut.function.aws.proxy.payload1.ApiGatewayProxyServletRequest<B>
- Type Parameters:
B
- The body type
- All Implemented Interfaces:
io.micronaut.core.attr.AttributeHolder
,io.micronaut.core.attr.MutableAttributeHolder
,io.micronaut.core.convert.ConversionServiceAware
,io.micronaut.http.FullHttpRequest<B>
,io.micronaut.http.HttpMessage<B>
,io.micronaut.http.HttpRequest<B>
,io.micronaut.http.MutableHttpMessage<B>
,io.micronaut.http.MutableHttpRequest<B>
,io.micronaut.http.ServerHttpRequest<B>
,io.micronaut.servlet.http.MutableServletHttpRequest<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,
,B> io.micronaut.servlet.http.ParsedBodyHolder<B>
,io.micronaut.servlet.http.ServletExchange<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,
,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent> io.micronaut.servlet.http.ServletHttpRequest<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,
B>
@Internal
public final class ApiGatewayProxyServletRequest<B>
extends ApiGatewayServletRequest<B,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
Implementation of
ServletHttpRequest
for AWS API Gateway Proxy.- Since:
- 4.0.0
- Author:
- Tim Yates
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.function.aws.proxy.ApiGatewayServletRequest
ApiGatewayServletRequest.EmptyBodyException
Nested classes/interfaces inherited from interface io.micronaut.servlet.http.ServletHttpRequest
io.micronaut.servlet.http.ServletHttpRequest.AsyncExecution, io.micronaut.servlet.http.ServletHttpRequest.AsyncExecutionCallback
-
Field Summary
Fields inherited from class io.micronaut.function.aws.proxy.ApiGatewayServletRequest
conversionService, requestEvent
Fields inherited from interface io.micronaut.http.HttpRequest
SCHEME_HTTP, SCHEME_HTTPS
-
Constructor Summary
ConstructorDescriptionApiGatewayProxyServletRequest
(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent requestEvent, ApiGatewayProxyServletResponse<Object> response, io.micronaut.core.convert.ConversionService conversionService, io.micronaut.servlet.http.BodyBuilder bodyBuilder) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
io.micronaut.http.MutableHttpHeaders
io.micronaut.http.MutableHttpParameters
io.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,
?> Methods inherited from class io.micronaut.function.aws.proxy.ApiGatewayServletRequest
body, bufferContents, buildUri, byteBody, contents, cookie, getAttributes, getBody, getBody, getBodyBytes, getCookies, getHeaders, getInputStream, getMethod, getNativeRequest, getParameters, getParametersFromBody, getReader, getRequest, getUri, isFormSubmission, parseMethod, setConversionService, setParsedBody, splitCommaSeparatedValue, transformCommaSeparatedValue, uri
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttribute
Methods inherited from interface io.micronaut.http.FullHttpRequest
isFull
Methods inherited from interface io.micronaut.http.HttpMessage
getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType
Methods inherited from interface io.micronaut.http.HttpRequest
accept, getCertificate, getHttpVersion, getLocale, getMethodName, getOrigin, getPath, getRemoteAddress, getServerAddress, getServerName, getSslSession, getUserPrincipal, getUserPrincipal, isSecure, mutate, setAttribute
Methods inherited from interface io.micronaut.core.attr.MutableAttributeHolder
removeAttribute
Methods inherited from interface io.micronaut.http.MutableHttpMessage
bodyWriter
Methods inherited from interface io.micronaut.http.MutableHttpRequest
accept, accept, basicAuth, bearerAuth, contentEncoding, contentLength, contentType, contentType, cookies, header, headers, headers, toMutableRequest, uri
Methods inherited from interface io.micronaut.servlet.http.ServletHttpRequest
executeAsync, getContextPath, isAsyncSupported
-
Constructor Details
-
ApiGatewayProxyServletRequest
public ApiGatewayProxyServletRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent requestEvent, ApiGatewayProxyServletResponse<Object> response, io.micronaut.core.convert.ConversionService conversionService, io.micronaut.servlet.http.BodyBuilder bodyBuilder)
-
-
Method Details
-
getBodyBytes
- Specified by:
getBodyBytes
in classApiGatewayServletRequest<B,
com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent, com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent> - Throws:
ApiGatewayServletRequest.EmptyBodyException
-
getHeaders
public io.micronaut.http.MutableHttpHeaders getHeaders() -
getParameters
public io.micronaut.http.MutableHttpParameters getParameters() -
getResponse
public io.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,?> getResponse()
-