Package com.netflix.zuul.message.http
Interface HttpResponseMessage
- All Superinterfaces:
Cloneable
,HttpResponseInfo
,ZuulMessage
- All Known Implementing Classes:
HttpResponseMessageImpl
User: Mike Smith
Date: 7/16/15
Time: 12:45 AM
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSetCookie
(io.netty.handler.codec.http.Cookie cookie) The immutable response that was received from Origin.int
Returns the maximum body size that this message is willing to hold.The mutable request that will be sent to Origin.boolean
removeExistingSetCookie
(String cookieName) void
setSetCookie
(io.netty.handler.codec.http.Cookie cookie) void
setStatus
(int status) void
This should be called after response received from Origin, to store a copy of the response as-is.Methods inherited from interface com.netflix.zuul.message.http.HttpResponseInfo
clone, getInboundRequest, getInfoForLogging, getStatus, hasSetCookieWithName, parseSetCookieHeader
Methods inherited from interface com.netflix.zuul.message.ZuulMessage
bufferBodyContents, disposeBufferedBody, finishBufferedBodyIfIncomplete, getBody, getBodyAsText, getBodyContents, getBodyLength, getContext, getHeaders, hasBody, hasCompleteBody, resetBodyReader, runBufferedBodyContentThroughFilter, setBody, setBodyAsText, setHasBody, setHeaders
-
Method Details
-
setStatus
void setStatus(int status) -
getMaxBodySize
int getMaxBodySize()Description copied from interface:ZuulMessage
Returns the maximum body size that this message is willing to hold. This value value should be more than the sum of lengths of the body chunks. The max body size may not be strictly enforced, and is informational.- Specified by:
getMaxBodySize
in interfaceZuulMessage
-
addSetCookie
void addSetCookie(io.netty.handler.codec.http.Cookie cookie) -
setSetCookie
void setSetCookie(io.netty.handler.codec.http.Cookie cookie) -
removeExistingSetCookie
-
getOutboundRequest
HttpRequestMessage getOutboundRequest()The mutable request that will be sent to Origin. -
getInboundResponse
HttpResponseInfo getInboundResponse()The immutable response that was received from Origin. -
storeInboundResponse
void storeInboundResponse()This should be called after response received from Origin, to store a copy of the response as-is.
-