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

This view

  • Original page
  • New address

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

Class DefaultHttp2HeadersFrame

java.lang.Object
io.netty.handler.codec.http2.AbstractHttp2StreamFrame
io.netty.handler.codec.http2.DefaultHttp2HeadersFrame
All Implemented Interfaces:
Http2Frame, Http2HeadersFrame, Http2StreamFrame

public final class DefaultHttp2HeadersFrame extends AbstractHttp2StreamFrame implements Http2HeadersFrame
The default Http2HeadersFrame implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultHttp2HeadersFrame(Http2Headers headers)
    Equivalent to new DefaultHttp2HeadersFrame(headers, false).
    DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream)
    Equivalent to new DefaultHttp2HeadersFrame(headers, endStream, 0).
    DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream, int padding)
    Construct a new headers message.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object o)
    Returns true if o has equal stream to this object.
    int
    hashCode()
     
    Http2Headers
    headers()
    A complete header list.
    boolean
    isEndStream()
    Returns true if the END_STREAM flag is set.
    String
    name()
    Returns the name of the HTTP/2 frame e.g.
    int
    padding()
    Frame padding to use.
    DefaultHttp2HeadersFrame
    stream(Http2FrameStream stream)
    Set the Http2FrameStream object for this frame.
    String
    toString()
     

    Methods inherited from class AbstractHttp2StreamFrame

    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.

    Methods inherited from class Object

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

    • DefaultHttp2HeadersFrame

      public DefaultHttp2HeadersFrame(Http2Headers headers)
      Equivalent to new DefaultHttp2HeadersFrame(headers, false).
      Parameters:
      headers - the non-null headers to send
    • DefaultHttp2HeadersFrame

      public DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream)
      Equivalent to new DefaultHttp2HeadersFrame(headers, endStream, 0).
      Parameters:
      headers - the non-null headers to send
    • DefaultHttp2HeadersFrame

      public DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream, int padding)
      Construct a new headers message.
      Parameters:
      headers - the non-null headers to send
      endStream - whether these headers should terminate the stream
      padding - additional bytes that should be added to obscure the true content size. Must be between 0 and 256 (inclusive).
  • Method Details

    • stream

      public DefaultHttp2HeadersFrame stream(Http2FrameStream stream)
      Description copied from interface: Http2StreamFrame
      Set the Http2FrameStream object for this frame.
      Specified by:
      stream in interface Http2StreamFrame
      Overrides:
      stream in class AbstractHttp2StreamFrame
    • name

      public String name()
      Description copied from interface: Http2Frame
      Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
      Specified by:
      name in interface Http2Frame
    • headers

      public Http2Headers headers()
      Description copied from interface: Http2HeadersFrame
      A complete header list. CONTINUATION frames are automatically handled.
      Specified by:
      headers in interface Http2HeadersFrame
    • isEndStream

      public boolean isEndStream()
      Description copied from interface: Http2HeadersFrame
      Returns true if the END_STREAM flag is set.
      Specified by:
      isEndStream in interface Http2HeadersFrame
    • padding

      public int padding()
      Description copied from interface: Http2HeadersFrame
      Frame padding to use. Must be non-negative and less than 256.
      Specified by:
      padding in interface Http2HeadersFrame
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Description copied from class: AbstractHttp2StreamFrame
      Returns true if o has equal stream to this object.
      Overrides:
      equals in class AbstractHttp2StreamFrame
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractHttp2StreamFrame
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.