Class ApplicationLoadBalancerResponseEventAdapter<T>
java.lang.Object
io.micronaut.function.aws.proxy.alb.ApplicationLoadBalancerResponseEventAdapter<T>
- Type Parameters:
T- The body type
- 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 ApplicationLoadBalancerResponseEventAdapter<T>
extends Object
implements io.micronaut.http.MutableHttpResponse<T>
Adapts the v2
APIGatewayProxyResponseEvent to a MutableHttpResponse.-
Constructor Summary
ConstructorsConstructorDescriptionApplicationLoadBalancerResponseEventAdapter(com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent event, io.micronaut.core.convert.ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescription<B> io.micronaut.http.MutableHttpResponse<B>body(B body) intcode()io.micronaut.http.MutableHttpResponse<T>cookie(io.micronaut.http.cookie.Cookie cookie) io.micronaut.core.convert.value.MutableConvertibleValues<Object>getBody()io.micronaut.http.MutableHttpHeadersio.micronaut.http.HttpStatusreason()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, 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, 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, toMutableResponse
-
Constructor Details
-
ApplicationLoadBalancerResponseEventAdapter
public ApplicationLoadBalancerResponseEventAdapter(com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent event, io.micronaut.core.convert.ConversionService conversionService)
-
-
Method Details
-
cookie
- Specified by:
cookiein interfaceio.micronaut.http.MutableHttpResponse<T>
-
getHeaders
public io.micronaut.http.MutableHttpHeaders getHeaders() -
getAttributes
- Specified by:
getAttributesin interfaceio.micronaut.core.attr.AttributeHolder- Specified by:
getAttributesin interfaceio.micronaut.http.HttpMessage<T>- Specified by:
getAttributesin interfaceio.micronaut.core.attr.MutableAttributeHolder
-
getBody
- Specified by:
getBodyin interfaceio.micronaut.http.HttpMessage<T>
-
body
public <B> io.micronaut.http.MutableHttpResponse<B> body(B body) -
status
- Specified by:
statusin interfaceio.micronaut.http.MutableHttpResponse<T>
-
code
public int code()- Specified by:
codein interfaceio.micronaut.http.HttpResponse<T>
-
reason
- Specified by:
reasonin interfaceio.micronaut.http.HttpResponse<T>
-
getStatus
public io.micronaut.http.HttpStatus getStatus()- Specified by:
getStatusin interfaceio.micronaut.http.HttpResponse<T>
-