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) int
code()
io.micronaut.http.MutableHttpResponse<B>
cookie
(io.micronaut.http.cookie.Cookie cookie) io.micronaut.core.convert.value.MutableConvertibleValues<Object>
getBody()
io.micronaut.http.MutableHttpHeaders
com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent
reason()
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, wait
Methods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttribute
Methods inherited from interface io.micronaut.http.HttpMessage
getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getLocale
Methods inherited from interface io.micronaut.http.HttpResponse
body, getCookie, getCookies, getStatus, header, setAttribute, status
Methods inherited from interface io.micronaut.core.attr.MutableAttributeHolder
removeAttribute
Methods inherited from interface io.micronaut.http.MutableHttpMessage
basicAuth, bearerAuth, bodyWriter
Methods inherited from interface io.micronaut.http.MutableHttpResponse
attribute, characterEncoding, characterEncoding, contentEncoding, contentLength, contentType, contentType, cookies, header, headers, headers, locale, status, status, status, toMutableResponse
Methods 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:
getNativeResponse
in interfaceio.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,
B>
-
getOutputStream
- Specified by:
getOutputStream
in interfaceio.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,
B>
-
getWriter
- Specified by:
getWriter
in interfaceio.micronaut.servlet.http.ServletHttpResponse<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent,
B>
-
cookie
- Specified by:
cookie
in interfaceio.micronaut.http.MutableHttpResponse<B>
-
getHeaders
public io.micronaut.http.MutableHttpHeaders getHeaders() -
getAttributes
- Specified by:
getAttributes
in interfaceio.micronaut.core.attr.AttributeHolder
- Specified by:
getAttributes
in interfaceio.micronaut.http.HttpMessage<B>
- Specified by:
getAttributes
in interfaceio.micronaut.core.attr.MutableAttributeHolder
-
getBody
- Specified by:
getBody
in interfaceio.micronaut.http.HttpMessage<B>
-
body
public <T> io.micronaut.http.MutableHttpResponse<T> body(@Nullable T body) -
status
- Specified by:
status
in interfaceio.micronaut.http.MutableHttpResponse<B>
-
code
public int code()- Specified by:
code
in interfaceio.micronaut.http.HttpResponse<B>
-
reason
- Specified by:
reason
in interfaceio.micronaut.http.HttpResponse<B>
-