Package io.micronaut.function.aws.proxy
Class AbstractServletHttpResponse<R,B> 
java.lang.Object
io.micronaut.function.aws.proxy.AbstractServletHttpResponse<R,B> 
- Type Parameters:
- R- Response Type
- B- Body Type
- All Implemented Interfaces:
- io.micronaut.core.attr.AttributeHolder,- io.micronaut.core.attr.MutableAttributeHolder,- io.micronaut.http.HttpMessage<B>,- io.micronaut.http.HttpResponse<B>,- io.micronaut.http.MutableHttpMessage<B>,- io.micronaut.http.MutableHttpResponse<B>,- io.micronaut.servlet.http.ServletHttpResponse<R,- B> 
- Direct Known Subclasses:
- ApiGatewayProxyServletResponse,- APIGatewayV2HTTPResponseServletResponse,- ApplicationLoadBalancerServletResponse
@Internal
public abstract class AbstractServletHttpResponse<R,B> 
extends Object
implements io.micronaut.servlet.http.ServletHttpResponse<R,B> 
Abstract class for implementations of 
ServletHttpResponse.- Since:
- 4.0.0
- Author:
- Sergio del Amo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final io.micronaut.function.BinaryTypeConfigurationprotected final ByteArrayOutputStreamprotected final io.micronaut.http.MutableHttpHeadersprotected int
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractServletHttpResponse(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.function.BinaryTypeConfiguration binaryTypeConfiguration) 
- 
Method SummaryModifier and TypeMethodDescription<T> io.micronaut.http.MutableHttpResponse<T>body(T body) intcode()io.micronaut.http.MutableHttpResponse<B>cookie(io.micronaut.http.cookie.Cookie cookie) io.micronaut.core.convert.value.MutableConvertibleValues<Object>getBody()io.micronaut.http.MutableHttpHeadersreason()io.micronaut.http.MutableHttpResponse<B>status(int status, CharSequence message) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.attr.AttributeHoldergetAttribute, getAttributeMethods inherited from interface io.micronaut.http.HttpMessagegetBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getLocaleMethods inherited from interface io.micronaut.http.HttpResponsebody, getCookie, getCookies, getStatus, header, setAttribute, statusMethods inherited from interface io.micronaut.core.attr.MutableAttributeHolderremoveAttributeMethods inherited from interface io.micronaut.http.MutableHttpMessagebasicAuth, bearerAuth, bodyWriterMethods inherited from interface io.micronaut.http.MutableHttpResponseattribute, cacheControl, characterEncoding, characterEncoding, contentEncoding, contentLength, contentType, contentType, cookies, header, headers, headers, locale, status, status, status, toMutableResponseMethods inherited from interface io.micronaut.servlet.http.ServletHttpResponsegetNativeResponse, isCommitted, stream, stream
- 
Field Details- 
body
- 
statusprotected int status
- 
headersprotected final io.micronaut.http.MutableHttpHeaders headers
- 
binaryTypeConfigurationprotected final io.micronaut.function.BinaryTypeConfiguration binaryTypeConfiguration
 
- 
- 
Constructor Details- 
AbstractServletHttpResponseprotected AbstractServletHttpResponse(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.function.BinaryTypeConfiguration binaryTypeConfiguration) 
 
- 
- 
Method Details- 
getOutputStream
- 
getWriter
- 
cookie- Specified by:
- cookiein interface- io.micronaut.http.MutableHttpResponse<R>
 
- 
getHeaderspublic io.micronaut.http.MutableHttpHeaders getHeaders()
- 
getAttributes- Specified by:
- getAttributesin interface- io.micronaut.core.attr.AttributeHolder
- Specified by:
- getAttributesin interface- io.micronaut.http.HttpMessage<R>
- Specified by:
- getAttributesin interface- io.micronaut.core.attr.MutableAttributeHolder
 
- 
getBody- Specified by:
- getBodyin interface- io.micronaut.http.HttpMessage<R>
 
- 
bodypublic <T> io.micronaut.http.MutableHttpResponse<T> body(@Nullable T body) 
- 
status- Specified by:
- statusin interface- io.micronaut.http.MutableHttpResponse<R>
 
- 
codepublic int code()- Specified by:
- codein interface- io.micronaut.http.HttpResponse<R>
 
- 
reason- Specified by:
- reasonin interface- io.micronaut.http.HttpResponse<R>
 
 
-