Package com.browserup.bup.util
Class HttpMessageInfo
- java.lang.Object
-
- com.browserup.bup.util.HttpMessageInfo
-
public class HttpMessageInfo extends java.lang.ObjectEncapsulates additional HTTP message data passed to request and response filters.
-
-
Constructor Summary
Constructors Constructor Description HttpMessageInfo(io.netty.handler.codec.http.HttpRequest originalRequest, io.netty.channel.ChannelHandlerContext channelHandlerContext, boolean isHttps, java.lang.String url, java.lang.String originalUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.channel.ChannelHandlerContextgetChannelHandlerContext()TheChannelHandlerContextfor this request's client connection.io.netty.handler.codec.http.HttpRequestgetOriginalRequest()The original request from the client.java.lang.StringgetOriginalUrl()Returns the full, absolute URL of the original request from the client for both HTTP and HTTPS URLs.java.lang.StringgetUrl()Returns the full, absolute URL of this request from the client for both HTTP and HTTPS URLs.booleanisHttps()Returns true if this is an HTTPS message.
-
-
-
Method Detail
-
getOriginalRequest
public io.netty.handler.codec.http.HttpRequest getOriginalRequest()
The original request from the client. Does not reflect any modifications from previous filters.- Returns:
- HttpRequest
-
getChannelHandlerContext
public io.netty.channel.ChannelHandlerContext getChannelHandlerContext()
TheChannelHandlerContextfor this request's client connection.- Returns:
- ChannelHandlerContext
-
isHttps
public boolean isHttps()
Returns true if this is an HTTPS message.- Returns:
- boolean
-
getOriginalUrl
public java.lang.String getOriginalUrl()
Returns the full, absolute URL of the original request from the client for both HTTP and HTTPS URLs. The URL will not reflect modifications from this or other filters.- Returns:
- original URL
-
getUrl
public java.lang.String getUrl()
Returns the full, absolute URL of this request from the client for both HTTP and HTTPS URLs. The URL will reflect modifications from filters. If this method is called while a request filter is processing, it will reflect any modifications to the URL from all previous filters.- Returns:
- URL
-
-