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
  • DefaultHttpContent

This view

  • Original page
  • New address

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

Class DefaultHttpContent

java.lang.Object
io.netty.handler.codec.http.DefaultHttpObject
io.netty.handler.codec.http.DefaultHttpContent
All Implemented Interfaces:
ByteBufHolder, DecoderResultProvider, HttpContent, HttpObject, ReferenceCounted
Direct Known Subclasses:
DefaultLastHttpContent

public class DefaultHttpContent extends DefaultHttpObject implements HttpContent
The default HttpContent implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultHttpContent(ByteBuf content)
    Creates a new instance with the specified chunk content.
  • Method Summary

    Modifier and Type
    Method
    Description
    ByteBuf
    content()
    Return the data which is held by this ByteBufHolder.
    HttpContent
    copy()
    Creates a deep copy of this ByteBufHolder.
    HttpContent
    duplicate()
    Duplicates this ByteBufHolder.
    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.
    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.
    String
    toString()
     
    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 class DefaultHttpObject

    decoderResult, equals, getDecoderResult, hashCode, setDecoderResult
    Modifier and Type
    Method
    Description
    DecoderResult
    decoderResult()
    Returns the result of decoding this object.
    boolean
    equals(Object o)
     
    DecoderResult
    getDecoderResult()
    Deprecated.
    int
    hashCode()
     
    void
    setDecoderResult(DecoderResult decoderResult)
    Updates the result of decoding this object.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DefaultHttpContent

      public DefaultHttpContent(ByteBuf content)
      Creates a new instance with the specified chunk content.
  • Method Details

    • content

      public ByteBuf content()
      Description copied from interface: ByteBufHolder
      Return the data which is held by this ByteBufHolder.
      Specified by:
      content in interface ByteBufHolder
    • copy

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

      public 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
      Specified by:
      duplicate in interface HttpContent
    • retainedDuplicate

      public 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
      Specified by:
      retainedDuplicate in interface HttpContent
      See Also:
      • ByteBuf.retainedDuplicate()
    • replace

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

      public int refCnt()
      Description copied from interface: ReferenceCounted
      Returns the reference count of this object. If 0, it means this object has been deallocated.
      Specified by:
      refCnt in interface ReferenceCounted
    • retain

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

      public 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 HttpContent
      Specified by:
      retain in interface ReferenceCounted
    • touch

      public 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 HttpContent
      Specified by:
      touch in interface ReferenceCounted
    • touch

      public 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 HttpContent
      Specified by:
      touch in interface ReferenceCounted
    • release

      public boolean release()
      Description copied from interface: ReferenceCounted
      Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
      Specified by:
      release in interface ReferenceCounted
      Returns:
      true if and only if the reference count became 0 and this object has been deallocated
    • release

      public boolean release(int decrement)
      Description copied from interface: ReferenceCounted
      Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
      Specified by:
      release in interface ReferenceCounted
      Returns:
      true if and only if the reference count became 0 and this object has been deallocated
    • toString

      public String toString()
      Overrides:
      toString in class Object
You are visitor 01402792 — 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.