Class Http1FullRequest

  • All Implemented Interfaces:
    BasicRequest, io.netty.buffer.ByteBufHolder, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.FullHttpMessage, io.netty.handler.codec.http.FullHttpRequest, io.netty.handler.codec.http.HttpContent, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpRequest, io.netty.handler.codec.http.LastHttpContent, io.netty.util.AttributeMap, io.netty.util.ReferenceCounted, java.lang.Cloneable

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

      • Fields inherited from interface io.netty.handler.codec.http.LastHttpContent

        EMPTY_LAST_CONTENT
    • Constructor Summary

      Constructors 
      Constructor Description
      Http1FullRequest​(io.netty.handler.codec.http.FullHttpRequest request)  
      Http1FullRequest​(io.netty.handler.codec.http.HttpRequest request, Http1Headers headers, Http1Headers trailingHeaders, io.netty.buffer.ByteBuf content)  
      Http1FullRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.buffer.ByteBuf content, Http1Headers headers, java.util.UUID requestId, long requestTimestamp, long requestNanos)  
      Http1FullRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, boolean validateHeaders, long requestTimestamp, long requestNanos)  
      Http1FullRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, long requestTimestamp, long requestNanos)  
      Http1FullRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, io.netty.buffer.ByteBuf content, boolean validateHeaders, long requestTimestamp, long requestNanos)  
      Http1FullRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, io.netty.buffer.ByteBuf content, long requestTimestamp, long requestNanos)  
      Http1FullRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, java.util.UUID requestId, long requestTimestamp, long requestNanos)  
    • Constructor Detail

      • Http1FullRequest

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

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

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

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

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

        public Http1FullRequest​(io.netty.handler.codec.http.HttpVersion httpVersion,
                                io.netty.handler.codec.http.HttpMethod method,
                                java.lang.String uri,
                                io.netty.buffer.ByteBuf content,
                                io.netty.handler.codec.http.HttpHeaders headers,
                                io.netty.handler.codec.http.HttpHeaders trailingHeader,
                                java.util.UUID requestId,
                                long requestTimestamp,
                                long requestNanos)
      • Http1FullRequest

        public Http1FullRequest​(io.netty.handler.codec.http.FullHttpRequest request)
      • Http1FullRequest

        public Http1FullRequest​(io.netty.handler.codec.http.HttpRequest request,
                                Http1Headers headers,
                                Http1Headers trailingHeaders,
                                io.netty.buffer.ByteBuf content)
    • Method Detail

      • replace

        public BasicFullHttpRequest replace​(io.netty.buffer.ByteBuf content)
        Specified by:
        replace in interface io.netty.buffer.ByteBufHolder
        Specified by:
        replace in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        replace in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        replace in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        replace in interface io.netty.handler.codec.http.LastHttpContent
        Overrides:
        replace in class BasicFullHttpRequest
      • setMethod

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

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