Class ApiGatewayProxyServletResponse<B>
java.lang.Object
io.micronaut.function.aws.proxy.payload1.ApiGatewayProxyServletResponse<B>
- Type Parameters:
B- The body type
- All Implemented Interfaces:
io.micronaut.core.attr.AttributeHolder,io.micronaut.core.attr.MutableAttributeHolder,io.micronaut.http.HttpMessage<B>,io.micronaut.http.HttpResponse<B>,io.micronaut.http.MutableHttpMessage<B>,io.micronaut.http.MutableHttpResponse<B>,io.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,B>
@Internal
public class ApiGatewayProxyServletResponse<B>
extends Object
implements io.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,B>
Implementation of
ServletHttpResponse for AWS API Gateway Proxy.- Since:
- 4.0.0
- Author:
- Tim Yates
-
Constructor Summary
ConstructorsConstructorDescriptionApiGatewayProxyServletResponse(io.micronaut.core.convert.ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescription<T> io.micronaut.http.MutableHttpResponse<T>body(T body) intcode()io.micronaut.http.MutableHttpResponse<B>cookie(io.micronaut.http.cookie.Cookie cookie) io.micronaut.core.convert.value.MutableConvertibleValues<Object>getBody()io.micronaut.http.MutableHttpHeaderscom.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEventreason()io.micronaut.http.MutableHttpResponse<B>status(int status, CharSequence message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttributeMethods inherited from interface io.micronaut.http.HttpMessage
getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getLocaleMethods inherited from interface io.micronaut.http.HttpResponse
body, getCookie, getCookies, getStatus, header, setAttribute, statusMethods inherited from interface io.micronaut.core.attr.MutableAttributeHolder
removeAttributeMethods inherited from interface io.micronaut.http.MutableHttpMessage
basicAuth, bearerAuth, bodyWriterMethods inherited from interface io.micronaut.http.MutableHttpResponse
attribute, characterEncoding, characterEncoding, contentEncoding, contentLength, contentType, contentType, cookies, header, headers, headers, locale, status, status, status, toMutableResponseMethods inherited from interface io.micronaut.servlet.http.ServletHttpResponse
stream
-
Constructor Details
-
ApiGatewayProxyServletResponse
public ApiGatewayProxyServletResponse(io.micronaut.core.convert.ConversionService conversionService)
-
-
Method Details
-
getNativeResponse
public com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent getNativeResponse()- Specified by:
getNativeResponsein interfaceio.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,B>
-
getOutputStream
- Specified by:
getOutputStreamin interfaceio.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,B>
-
getWriter
- Specified by:
getWriterin interfaceio.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,B>
-
cookie
- Specified by:
cookiein interfaceio.micronaut.http.MutableHttpResponse<B>
-
getHeaders
public io.micronaut.http.MutableHttpHeaders getHeaders() -
getAttributes
- Specified by:
getAttributesin interfaceio.micronaut.core.attr.AttributeHolder- Specified by:
getAttributesin interfaceio.micronaut.http.HttpMessage<B>- Specified by:
getAttributesin interfaceio.micronaut.core.attr.MutableAttributeHolder
-
getBody
- Specified by:
getBodyin interfaceio.micronaut.http.HttpMessage<B>
-
body
public <T> io.micronaut.http.MutableHttpResponse<T> body(@Nullable T body) -
status
- Specified by:
statusin interfaceio.micronaut.http.MutableHttpResponse<B>
-
code
public int code()- Specified by:
codein interfaceio.micronaut.http.HttpResponse<B>
-
reason
- Specified by:
reasonin interfaceio.micronaut.http.HttpResponse<B>
-