GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http
  • HttpContent

This view

  • Original page
  • New address

GeezerVison is showing netty.io — HttpContent (Netty API Reference (4.1.141.Final))

Interface HttpContent

All Superinterfaces:
ByteBufHolder, DecoderResultProvider, HttpObject, ReferenceCounted
All Known Subinterfaces:
FullHttpMessage, FullHttpRequest, FullHttpResponse, LastHttpContent
All Known Implementing Classes:
DefaultFullHttpRequest, DefaultFullHttpResponse, DefaultHttpContent, DefaultLastHttpContent

public interface HttpContent extends HttpObject, ByteBufHolder
An HTTP chunk which is used for HTTP chunked transfer-encoding. HttpObjectDecoder generates HttpContent after HttpMessage when the content is large or the encoding of the content is 'chunked. If you prefer not to receive HttpContent in your handler, place HttpObjectAggregator after HttpObjectDecoder in the ChannelPipeline.
  • Method Summary

    Modifier and Type
    Method
    Description
    HttpContent
    copy()
    Creates a deep copy of this ByteBufHolder.
    HttpContent
    duplicate()
    Duplicates this ByteBufHolder.
    HttpContent
    replace(ByteBuf content)
    Returns a new ByteBufHolder which contains the specified content.
    HttpContent
    retain()
    Increases the reference count by 1.
    HttpContent
    retain(int increment)
    Increases the reference count by the specified increment.
    HttpContent
    retainedDuplicate()
    Duplicates this ByteBufHolder.
    HttpContent
    touch()
    Records the current access location of this object for debugging purposes.
    HttpContent
    touch(Object hint)
    Records the current access location of this object with an additional arbitrary information for debugging purposes.

    Methods inherited from interface ByteBufHolder

    content
    Modifier and Type
    Method
    Description
    ByteBuf
    content()
    Return the data which is held by this ByteBufHolder.

    Methods inherited from interface DecoderResultProvider

    decoderResult, setDecoderResult
    Modifier and Type
    Method
    Description
    DecoderResult
    decoderResult()
    Returns the result of decoding this object.
    void
    setDecoderResult(DecoderResult result)
    Updates the result of decoding this object.

    Methods inherited from interface HttpObject

    getDecoderResult
    Modifier and Type
    Method
    Description
    DecoderResult
    getDecoderResult()
    Deprecated.
    Use DecoderResultProvider.decoderResult() instead.

    Methods inherited from interface ReferenceCounted

    refCnt, release, release
    Modifier and Type
    Method
    Description
    int
    refCnt()
    Returns the reference count of this object.
    boolean
    release()
    Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
    boolean
    release(int decrement)
    Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
  • Method Details

    • copy

      HttpContent copy()
      Description copied from interface: ByteBufHolder
      Creates a deep copy of this ByteBufHolder.
      Specified by:
      copy in interface ByteBufHolder
    • duplicate

      HttpContent duplicate()
      Description copied from interface: ByteBufHolder
      Duplicates this ByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().
      Specified by:
      duplicate in interface ByteBufHolder
    • retainedDuplicate

      HttpContent retainedDuplicate()
      Description copied from interface: ByteBufHolder
      Duplicates this ByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().
      Specified by:
      retainedDuplicate in interface ByteBufHolder
      See Also:
      • ByteBuf.retainedDuplicate()
    • replace

      HttpContent replace(ByteBuf content)
      Description copied from interface: ByteBufHolder
      Returns a new ByteBufHolder which contains the specified content.
      Specified by:
      replace in interface ByteBufHolder
    • retain

      HttpContent retain()
      Description copied from interface: ReferenceCounted
      Increases the reference count by 1.
      Specified by:
      retain in interface ByteBufHolder
      Specified by:
      retain in interface ReferenceCounted
    • retain

      HttpContent retain(int increment)
      Description copied from interface: ReferenceCounted
      Increases the reference count by the specified increment.
      Specified by:
      retain in interface ByteBufHolder
      Specified by:
      retain in interface ReferenceCounted
    • touch

      HttpContent touch()
      Description copied from interface: ReferenceCounted
      Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).
      Specified by:
      touch in interface ByteBufHolder
      Specified by:
      touch in interface ReferenceCounted
    • touch

      HttpContent touch(Object hint)
      Description copied from interface: ReferenceCounted
      Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.
      Specified by:
      touch in interface ByteBufHolder
      Specified by:
      touch in interface ReferenceCounted
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.