Class BasicFullHttpRequest

  • 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
    Direct Known Subclasses:
    Http1FullRequest

    public class BasicFullHttpRequest
    extends BasicHttpRequest
    implements io.netty.handler.codec.http.FullHttpRequest
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.netty.handler.codec.http.HttpHeaders _trailingHeaders  
      • Fields inherited from interface io.netty.handler.codec.http.LastHttpContent

        EMPTY_LAST_CONTENT
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicFullHttpRequest​(io.netty.handler.codec.http.FullHttpRequest request)  
      BasicFullHttpRequest​(io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeader, io.netty.buffer.ByteBuf content)  
      BasicFullHttpRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, boolean validateHeaders, long requestTimestamp, long requestNanos)  
      BasicFullHttpRequest​(io.netty.handler.codec.http.HttpVersion httpVersion, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri, long requestTimestamp, long requestNanos)  
      BasicFullHttpRequest​(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)  
      BasicFullHttpRequest​(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)  
      BasicFullHttpRequest​(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)  
    • Field Detail

      • _trailingHeaders

        protected io.netty.handler.codec.http.HttpHeaders _trailingHeaders
    • Constructor Detail

      • BasicFullHttpRequest

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

        public BasicFullHttpRequest​(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)
      • BasicFullHttpRequest

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

        public BasicFullHttpRequest​(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)
      • BasicFullHttpRequest

        public BasicFullHttpRequest​(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)
      • BasicFullHttpRequest

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

        public BasicFullHttpRequest​(io.netty.handler.codec.http.HttpRequest request,
                                    io.netty.handler.codec.http.HttpHeaders headers,
                                    io.netty.handler.codec.http.HttpHeaders trailingHeader,
                                    io.netty.buffer.ByteBuf content)
    • Method Detail

      • trailingHeaders

        public io.netty.handler.codec.http.HttpHeaders trailingHeaders()
        Specified by:
        trailingHeaders in interface io.netty.handler.codec.http.LastHttpContent
      • content

        public io.netty.buffer.ByteBuf content()
        Specified by:
        content in interface io.netty.buffer.ByteBufHolder
      • refCnt

        public int refCnt()
        Specified by:
        refCnt in interface io.netty.util.ReferenceCounted
      • retain

        public BasicFullHttpRequest retain()
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        retain in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        retain in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        retain in interface io.netty.handler.codec.http.LastHttpContent
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • retain

        public BasicFullHttpRequest retain​(int increment)
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        retain in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        retain in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        retain in interface io.netty.handler.codec.http.LastHttpContent
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • touch

        public BasicFullHttpRequest touch()
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        touch in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        touch in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        touch in interface io.netty.handler.codec.http.LastHttpContent
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
      • touch

        public io.netty.handler.codec.http.FullHttpRequest touch​(java.lang.Object hint)
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        touch in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        touch in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        touch in interface io.netty.handler.codec.http.LastHttpContent
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
      • release

        public boolean release()
        Specified by:
        release in interface io.netty.util.ReferenceCounted
      • release

        public boolean release​(int decrement)
        Specified by:
        release in interface io.netty.util.ReferenceCounted
      • setProtocolVersion

        public BasicFullHttpRequest setProtocolVersion​(io.netty.handler.codec.http.HttpVersion version)
        Specified by:
        setProtocolVersion in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        setProtocolVersion in interface io.netty.handler.codec.http.HttpMessage
        Specified by:
        setProtocolVersion in interface io.netty.handler.codec.http.HttpRequest
        Overrides:
        setProtocolVersion in class io.netty.handler.codec.http.DefaultHttpRequest
      • 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 io.netty.handler.codec.http.DefaultHttpRequest
      • 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 io.netty.handler.codec.http.DefaultHttpRequest
      • copy

        public BasicFullHttpRequest copy()
        Specified by:
        copy in interface io.netty.buffer.ByteBufHolder
        Specified by:
        copy in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        copy in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        copy in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        copy in interface io.netty.handler.codec.http.LastHttpContent
      • duplicate

        public BasicFullHttpRequest duplicate()
        Description copied from class: BasicHttpRequest
        Construct a full copy of the request.
        Specified by:
        duplicate in interface io.netty.buffer.ByteBufHolder
        Specified by:
        duplicate in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        duplicate in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        duplicate in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        duplicate in interface io.netty.handler.codec.http.LastHttpContent
        Overrides:
        duplicate in class BasicHttpRequest
        Returns:
        copy of request
      • retainedDuplicate

        public BasicFullHttpRequest retainedDuplicate()
        Specified by:
        retainedDuplicate in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retainedDuplicate in interface io.netty.handler.codec.http.FullHttpMessage
        Specified by:
        retainedDuplicate in interface io.netty.handler.codec.http.FullHttpRequest
        Specified by:
        retainedDuplicate in interface io.netty.handler.codec.http.HttpContent
        Specified by:
        retainedDuplicate in interface io.netty.handler.codec.http.LastHttpContent
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class io.netty.handler.codec.http.DefaultHttpRequest