Interface ServletToAwsProxyResponseAdapter

All Known Implementing Classes:
DefaultServletToAwsProxyResponseAdapter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@DefaultImplementation(DefaultServletToAwsProxyResponseAdapter.class) @FunctionalInterface public interface ServletToAwsProxyResponseAdapter
Writes the contents of a APIGatewayV2HTTPResponse to a HttpServletResponse.
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(@NonNull io.micronaut.core.convert.ConversionService conversionService, @NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse awsProxyResponse, @NonNull jakarta.servlet.http.HttpServletResponse response)
    Writes the contents of a APIGatewayV2HTTPResponse to a HttpServletResponse.
  • Method Details

    • handle

      void handle(@NonNull @NonNull io.micronaut.core.convert.ConversionService conversionService, @NonNull @NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull @NonNull com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPResponse awsProxyResponse, @NonNull @NonNull jakarta.servlet.http.HttpServletResponse response) throws IOException
      Writes the contents of a APIGatewayV2HTTPResponse to a HttpServletResponse.
      Parameters:
      conversionService - The conversion service
      request - Servlet Request
      awsProxyResponse - The AWS proxy response
      response - The Servlet Response
      Throws:
      IOException - can be thrown while writing the response