Class ApiGatewayProxyResponseEventAdapter<T>
java.lang.Object
io.micronaut.function.aws.proxy.payload1.ApiGatewayProxyResponseEventAdapter<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
io.micronaut.core.attr.AttributeHolder
,io.micronaut.core.attr.MutableAttributeHolder
,io.micronaut.http.HttpMessage<T>
,io.micronaut.http.HttpResponse<T>
,io.micronaut.http.MutableHttpMessage<T>
,io.micronaut.http.MutableHttpResponse<T>
@Internal
public class ApiGatewayProxyResponseEventAdapter<T>
extends Object
implements io.micronaut.http.MutableHttpResponse<T>
Adapts the
APIGatewayProxyResponseEvent
to a MutableHttpResponse
.-
Constructor Summary
ConstructorDescriptionApiGatewayProxyResponseEventAdapter
(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent event, io.micronaut.core.convert.ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescription<B> io.micronaut.http.MutableHttpResponse<B>
body
(B body) int
code()
io.micronaut.http.MutableHttpResponse<T>
cookie
(io.micronaut.http.cookie.Cookie cookie) io.micronaut.core.convert.value.MutableConvertibleValues<Object>
getBody()
io.micronaut.http.MutableHttpHeaders
io.micronaut.http.HttpStatus
reason()
io.micronaut.http.MutableHttpResponse<T>
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, 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
-
Constructor Details
-
ApiGatewayProxyResponseEventAdapter
public ApiGatewayProxyResponseEventAdapter(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent event, io.micronaut.core.convert.ConversionService conversionService)
-
-
Method Details
-
cookie
- Specified by:
cookie
in interfaceio.micronaut.http.MutableHttpResponse<T>
-
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<T>
- Specified by:
getAttributes
in interfaceio.micronaut.core.attr.MutableAttributeHolder
-
getBody
- Specified by:
getBody
in interfaceio.micronaut.http.HttpMessage<T>
-
body
public <B> io.micronaut.http.MutableHttpResponse<B> body(B body) -
status
- Specified by:
status
in interfaceio.micronaut.http.MutableHttpResponse<T>
-
code
public int code()- Specified by:
code
in interfaceio.micronaut.http.HttpResponse<T>
-
reason
- Specified by:
reason
in interfaceio.micronaut.http.HttpResponse<T>
-
getStatus
public io.micronaut.http.HttpStatus getStatus()- Specified by:
getStatus
in interfaceio.micronaut.http.HttpResponse<T>
-