Package com.netflix.zuul.message.http
Interface HttpRequestInfo
- All Superinterfaces:
Cloneable
,ZuulMessage
- All Known Subinterfaces:
HttpRequestMessage
- All Known Implementing Classes:
HttpRequestMessageImpl
User: Mike Smith
Date: 7/15/15
Time: 1:18 PM
-
Method Summary
Modifier and TypeMethodDescriptionReflects the actual destination port that the client intended to communicate with, in preference to the port Zuul was listening on.Returns the headers for this message.Returns a string that reprsents this message which is suitable for debugging.int
Returns the maximum body size that this message is willing to hold.int
getPath()
int
getPort()
Parse and lazily cache the request cookies.Force parsing/re-parsing of the cookies.Methods inherited from interface com.netflix.zuul.message.ZuulMessage
bufferBodyContents, clone, disposeBufferedBody, finishBufferedBodyIfIncomplete, getBody, getBodyAsText, getBodyContents, getBodyLength, getContext, hasBody, hasCompleteBody, resetBodyReader, runBufferedBodyContentThroughFilter, setBody, setBodyAsText, setHasBody, setHeaders
-
Method Details
-
getProtocol
String getProtocol() -
getMethod
String getMethod() -
getPath
String getPath() -
getQueryParams
HttpQueryParams getQueryParams() -
getPathAndQuery
String getPathAndQuery() -
getHeaders
Headers getHeaders()Description copied from interface:ZuulMessage
Returns the headers for this message. They may be request or response headers, depending on the underlying type of this object. For some messages, there may be no headers, such as with chunked requests or responses. In this case, a non-null
default headers value will be returned.- Specified by:
getHeaders
in interfaceZuulMessage
-
getClientIp
String getClientIp() -
getScheme
String getScheme() -
getPort
int getPort() -
getServerName
String getServerName() -
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
-
getInfoForLogging
String getInfoForLogging()Description copied from interface:ZuulMessage
Returns a string that reprsents this message which is suitable for debugging.- Specified by:
getInfoForLogging
in interfaceZuulMessage
-
getOriginalHost
String getOriginalHost() -
getOriginalScheme
String getOriginalScheme() -
getOriginalProtocol
String getOriginalProtocol() -
getOriginalPort
int getOriginalPort() -
getClientDestinationPort
Reflects the actual destination port that the client intended to communicate with, in preference to the port Zuul was listening on. In the case where proxy protocol is enabled, this should reflect the destination IP encoded in the TCP payload by the load balancer. -
reconstructURI
String reconstructURI() -
parseCookies
Cookies parseCookies()Parse and lazily cache the request cookies. -
reParseCookies
Cookies reParseCookies()Force parsing/re-parsing of the cookies. May want to do this if headers have been mutated since cookies were first parsed.
-