Class HttpContent.Builder<T extends HttpContent.Builder>

    • Field Detail

      • last

        protected boolean last
      • content

        protected org.glassfish.grizzly.Buffer content
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • httpHeader

        public final T httpHeader​(HttpHeader httpHeader)
        Set the HttpHeader associated with this content.
        Parameters:
        httpHeader - the HttpHeader associated with this content.
        Returns:
        this.
      • last

        public final T last​(boolean last)
        Set whether this HttpContent chunk is the last.
        Parameters:
        last - is this HttpContent chunk last.
        Returns:
        Builder
      • content

        public final T content​(org.glassfish.grizzly.Buffer content)
        Set the HttpContent chunk content Buffer.
        Parameters:
        content - the HttpContent chunk content Buffer.
        Returns:
        Builder
      • build

        public HttpContent build()
        Build the HttpContent message.
        Returns:
        HttpContent
      • reset

        public void reset()