Class MetaData

    • Method Detail

      • recycle

        protected void recycle()
      • isRequest

        public boolean isRequest()
      • isResponse

        public boolean isResponse()
      • getVersion

        @Deprecated
        public HttpVersion getVersion()
        Deprecated.
        use getHttpVersion() instead
        Returns:
        the HTTP version of this MetaData object
      • getHttpVersion

        public HttpVersion getHttpVersion()
        Returns:
        the HTTP version of this MetaData object
      • setHttpVersion

        public void setHttpVersion​(HttpVersion httpVersion)
        Parameters:
        httpVersion - the HTTP version to set
      • getFields

        public HttpFields getFields()
        Returns:
        the HTTP fields of this MetaData object
      • getTrailerSupplier

        public java.util.function.Supplier<HttpFields> getTrailerSupplier()
      • setTrailerSupplier

        public void setTrailerSupplier​(java.util.function.Supplier<HttpFields> trailers)
      • getContentLength

        public long getContentLength()
        Returns:
        the content length if available, otherwise Long.MIN_VALUE
      • setContentLength

        public void setContentLength​(long contentLength)
      • iterator

        public java.util.Iterator<HttpField> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<HttpField>
        Returns:
        an iterator over the HTTP fields
        See Also:
        getFields()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object