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

    Constructors
    Constructor
    Description
    ApplicationLoadBalancerResponseEventAdapter(com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent event, io.micronaut.core.convert.ConversionService conversionService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <B> io.micronaut.http.MutableHttpResponse<B>
    body(B body)
     
    int
     
    io.micronaut.http.MutableHttpResponse<T>
    cookie(io.micronaut.http.cookie.Cookie cookie)
     
    io.micronaut.core.convert.value.MutableConvertibleValues<Object>
     
     
    io.micronaut.http.MutableHttpHeaders
     
    io.micronaut.http.HttpStatus
     
     
    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

    • ApplicationLoadBalancerResponseEventAdapter

      public ApplicationLoadBalancerResponseEventAdapter(com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent event, io.micronaut.core.convert.ConversionService conversionService)
  • Method Details

    • cookie

      public io.micronaut.http.MutableHttpResponse<T> cookie(io.micronaut.http.cookie.Cookie cookie)
      Specified by:
      cookie in interface io.micronaut.http.MutableHttpResponse<T>
    • getHeaders

      public io.micronaut.http.MutableHttpHeaders getHeaders()
      Specified by:
      getHeaders in interface io.micronaut.http.HttpMessage<T>
      Specified by:
      getHeaders in interface io.micronaut.http.MutableHttpMessage<T>
    • getAttributes

      public io.micronaut.core.convert.value.MutableConvertibleValues<Object> getAttributes()
      Specified by:
      getAttributes in interface io.micronaut.core.attr.AttributeHolder
      Specified by:
      getAttributes in interface io.micronaut.http.HttpMessage<T>
      Specified by:
      getAttributes in interface io.micronaut.core.attr.MutableAttributeHolder
    • getBody

      public Optional<T> getBody()
      Specified by:
      getBody in interface io.micronaut.http.HttpMessage<T>
    • body

      public <B> io.micronaut.http.MutableHttpResponse<B> body(B body)
      Specified by:
      body in interface io.micronaut.http.MutableHttpMessage<T>
      Specified by:
      body in interface io.micronaut.http.MutableHttpResponse<T>
    • status

      public io.micronaut.http.MutableHttpResponse<T> status(int status, CharSequence message)
      Specified by:
      status in interface io.micronaut.http.MutableHttpResponse<T>
    • code

      public int code()
      Specified by:
      code in interface io.micronaut.http.HttpResponse<T>
    • reason

      public String reason()
      Specified by:
      reason in interface io.micronaut.http.HttpResponse<T>
    • getStatus

      public io.micronaut.http.HttpStatus getStatus()
      Specified by:
      getStatus in interface io.micronaut.http.HttpResponse<T>