Class APIGatewayV2HTTPEventServletRequest<B>

java.lang.Object
io.micronaut.function.aws.proxy.ApiGatewayServletRequest<B,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse>
io.micronaut.function.aws.proxy.payload2.APIGatewayV2HTTPEventServletRequest<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.servlet.http.MutableServletHttpRequest<com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,B>, io.micronaut.servlet.http.ParsedBodyHolder<B>, io.micronaut.servlet.http.ServletExchange<com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse>, io.micronaut.servlet.http.ServletHttpRequest<com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,B>

@Internal public final class APIGatewayV2HTTPEventServletRequest<B> extends ApiGatewayServletRequest<B,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse>
Implementation of ServletHttpRequest for AWS API Gateway Proxy.
Since:
4.0.0
Author:
Tim Yates
  • Constructor Details

    • APIGatewayV2HTTPEventServletRequest

      public APIGatewayV2HTTPEventServletRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent requestEvent, APIGatewayV2HTTPResponseServletResponse<Object> response, io.micronaut.core.convert.ConversionService conversionService, io.micronaut.servlet.http.BodyBuilder bodyBuilder)
  • Method Details

    • getBodyBytes

      public byte[] getBodyBytes() throws IOException
      Specified by:
      getBodyBytes in class ApiGatewayServletRequest<B,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse>
      Throws:
      IOException
    • 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.APIGatewayV2HTTPResponse,?> getResponse()