Top Fields Constructors Methods
org.eclipse.jetty.http2.frames

public Class GoAwayFrame

extends Frame
Class Inheritance
Imports
java.nio.charset.StandardCharsets, org.eclipse.jetty.http2.ErrorCode

Field Summary

Modifier and TypeField and Description
private final int
public static final GoAwayFrame
private final int
private final byte[]
Inherited from org.eclipse.jetty.http2.frames.Frame:
DEFAULT_MAX_SIZEEMPTY_ARRAYHEADER_LENGTHMAX_MAX_SIZE

Constructor Summary

AccessConstructor and Description
public
GoAwayFrame(int lastStreamId, int error, byte[] payload)

Method Summary

Modifier and TypeMethod and Description
public int
public int
public byte[]
public boolean
isGraceful()

Returns: whether this GOAWAY frame is graceful, i.e. its lastStreamId == Integer.MAX_VALUE

public String
toString()

Overrides org.eclipse.jetty.http2.frames.Frame.toString.

Returns a string representation of the object.

public String
Inherited from org.eclipse.jetty.http2.frames.Frame:
getType

Field Detail

errorback to summary
private final int error
GRACEFULback to summary
public static final GoAwayFrame GRACEFUL
lastStreamIdback to summary
private final int lastStreamId
payloadback to summary
private final byte[] payload

Constructor Detail

GoAwayFrameback to summary
public GoAwayFrame(int lastStreamId, int error, byte[] payload)

Method Detail

getErrorback to summary
public int getError()
getLastStreamIdback to summary
public int getLastStreamId()
getPayloadback to summary
public byte[] getPayload()
isGracefulback to summary
public boolean isGraceful()
Returns:boolean

whether this GOAWAY frame is graceful, i.e. its lastStreamId == Integer.MAX_VALUE

toStringback to summary
public String toString()

Overrides org.eclipse.jetty.http2.frames.Frame.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
tryConvertPayloadback to summary
public String tryConvertPayload()