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 TypeMethodDescriptionvoidhandle(@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 aAPIGatewayV2HTTPResponseto aHttpServletResponse.
-
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 aAPIGatewayV2HTTPResponseto aHttpServletResponse.- Parameters:
conversionService- The conversion servicerequest- Servlet RequestawsProxyResponse- The AWS proxy responseresponse- The Servlet Response- Throws:
IOException- can be thrown while writing the response
-