org.apache.hc.core5.http2.frame

## Class Frame<T>

- java.lang.Object
- - org.apache.hc.core5.http2.frame.Frame<T>

- Type Parameters:
    `T` - frame payload representation.
  Direct Known Subclasses:
    RawFrame

      public abstract class Frame<T>
      extends Object

  Abstract HTTP/2 data frame.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Frame(int type, int flags, int streamId)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getFlags()`
    `abstract T` | `getPayload()`
    `int` | `getStreamId()`
    `int` | `getType()`
    `boolean` | `isFlagSet(FrameFlag flag)`
    `boolean` | `isType(FrameType type)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Frame

          public Frame(int type,
                       int flags,
                       int streamId)

  - ### Method Detail

    - #### isType

          public boolean isType(FrameType type)

    - #### isFlagSet

          public boolean isFlagSet(FrameFlag flag)

    - #### getType

          public int getType()

    - #### getFlags

          public int getFlags()

    - #### getStreamId

          public int getStreamId()

    - #### getPayload

          public abstract T getPayload()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.