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.http2
  • Http2DataFrame

This view

  • Original page
  • New address

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

Interface Http2DataFrame

All Superinterfaces:
ByteBufHolder, Http2Frame, Http2StreamFrame, ReferenceCounted
All Known Implementing Classes:
DefaultHttp2DataFrame

public interface Http2DataFrame extends Http2StreamFrame, ByteBufHolder
HTTP/2 DATA frame.
  • Method Summary

    Modifier and Type
    Method
    Description
    ByteBuf
    content()
    Payload of DATA frame.
    Http2DataFrame
    copy()
    Creates a deep copy of this ByteBufHolder.
    Http2DataFrame
    duplicate()
    Duplicates this ByteBufHolder.
    int
    initialFlowControlledBytes()
    Returns the number of bytes that are flow-controlled initially, so even if the content() is consumed this will not change.
    boolean
    isEndStream()
    Returns true if the END_STREAM flag is set.
    int
    padding()
    Frame padding to use.
    Http2DataFrame
    replace(ByteBuf content)
    Returns a new ByteBufHolder which contains the specified content.
    Http2DataFrame
    retain()
    Increases the reference count by 1.
    Http2DataFrame
    retain(int increment)
    Increases the reference count by the specified increment.
    Http2DataFrame
    retainedDuplicate()
    Duplicates this ByteBufHolder.
    Http2DataFrame
    touch()
    Records the current access location of this object for debugging purposes.
    Http2DataFrame
    touch(Object hint)
    Records the current access location of this object with an additional arbitrary information for debugging purposes.

    Methods inherited from interface Http2Frame

    name
    Modifier and Type
    Method
    Description
    String
    name()
    Returns the name of the HTTP/2 frame e.g.

    Methods inherited from interface Http2StreamFrame

    stream, stream
    Modifier and Type
    Method
    Description
    Http2FrameStream
    stream()
    Returns the Http2FrameStream object for this frame, or null if the frame has yet to be associated with a stream.
    Http2StreamFrame
    stream(Http2FrameStream stream)
    Set the Http2FrameStream object for this frame.

    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

    • padding

      int padding()
      Frame padding to use. Will be non-negative and less than 256.
    • content

      ByteBuf content()
      Payload of DATA frame. Will not be null.
      Specified by:
      content in interface ByteBufHolder
    • initialFlowControlledBytes

      int initialFlowControlledBytes()
      Returns the number of bytes that are flow-controlled initially, so even if the content() is consumed this will not change.
    • isEndStream

      boolean isEndStream()
      Returns true if the END_STREAM flag is set.
    • copy

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

      Http2DataFrame 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

      Http2DataFrame 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

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

      Http2DataFrame 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

      Http2DataFrame 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

      Http2DataFrame 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

      Http2DataFrame 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.