Class HttpMessageInfo


  • public class HttpMessageInfo
    extends java.lang.Object
    Encapsulates 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.ChannelHandlerContext getChannelHandlerContext()
      The ChannelHandlerContext for this request's client connection.
      io.netty.handler.codec.http.HttpRequest getOriginalRequest()
      The original request from the client.
      java.lang.String getOriginalUrl()
      Returns the full, absolute URL of the original request from the client for both HTTP and HTTPS URLs.
      java.lang.String getUrl()
      Returns the full, absolute URL of this request from the client for both HTTP and HTTPS URLs.
      boolean isHttps()
      Returns true if this is an HTTPS message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpMessageInfo

        public HttpMessageInfo​(io.netty.handler.codec.http.HttpRequest originalRequest,
                               io.netty.channel.ChannelHandlerContext channelHandlerContext,
                               boolean isHttps,
                               java.lang.String url,
                               java.lang.String originalUrl)
    • 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()
        The ChannelHandlerContext for 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