Class Http1Request

  • All Implemented Interfaces:
    BasicRequest, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpRequest, io.netty.util.AttributeMap, java.lang.Cloneable

    public class Http1Request
    extends BasicHttpRequest
    An implementation of BasicHttpRequest which always uses a Http1Headers for holding the headers. This is to aid efficiently encapsulating a Http2 request object as a Http1 object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Http1Request​(io.netty.handler.codec.http.HttpRequest request)  
      Http1Request​(io.netty.handler.codec.http.HttpRequest request, Http1Headers headers)  
      Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion, Http1Headers headers, java.util.UUID requestId, long requestTimestamp, long requestNanos)  
      Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri)  
      Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, boolean validateHeaders, long requestTimestamp, long requestNanos)  
      Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, long requestTimestamp, long requestNanos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http.HttpRequest setMethod​(io.netty.handler.codec.http.HttpMethod method)
      io.netty.handler.codec.http.HttpRequest setUri​(java.lang.String uri)
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpRequest

        getMethod, getUri, method, setProtocolVersion, toString, uri
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpMessage

        getProtocolVersion, headers, protocolVersion
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpObject

        decoderResult, getDecoderResult, setDecoderResult
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.netty.handler.codec.DecoderResultProvider

        decoderResult, setDecoderResult
      • Methods inherited from interface io.netty.handler.codec.http.HttpMessage

        getProtocolVersion, headers, protocolVersion
      • Methods inherited from interface io.netty.handler.codec.http.HttpObject

        getDecoderResult
    • Constructor Detail

      • Http1Request

        public Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion,
                            io.netty.handler.codec.http.HttpMethod method,
                            java.lang.String uri)
      • Http1Request

        public Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion,
                            io.netty.handler.codec.http.HttpMethod method,
                            java.lang.String uri,
                            long requestTimestamp,
                            long requestNanos)
      • Http1Request

        public Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion,
                            io.netty.handler.codec.http.HttpMethod method,
                            java.lang.String uri,
                            boolean validateHeaders,
                            long requestTimestamp,
                            long requestNanos)
      • Http1Request

        public Http1Request​(io.netty.handler.codec.http.HttpVersion httpVersion,
                            Http1Headers headers,
                            java.util.UUID requestId,
                            long requestTimestamp,
                            long requestNanos)
      • Http1Request

        public Http1Request​(io.netty.handler.codec.http.HttpRequest request)
      • Http1Request

        public Http1Request​(io.netty.handler.codec.http.HttpRequest request,
                            Http1Headers headers)
    • Method Detail

      • setMethod

        public io.netty.handler.codec.http.HttpRequest setMethod​(io.netty.handler.codec.http.HttpMethod method)
        Specified by:
        setMethod in interface io.netty.handler.codec.http.HttpRequest
        Overrides:
        setMethod in class io.netty.handler.codec.http.DefaultHttpRequest
      • setUri

        public io.netty.handler.codec.http.HttpRequest setUri​(java.lang.String uri)
        Specified by:
        setUri in interface io.netty.handler.codec.http.HttpRequest
        Overrides:
        setUri in class io.netty.handler.codec.http.DefaultHttpRequest