Package org.eclipse.jetty.http2.frames
Class GoAwayFrame
- java.lang.Object
-
- org.eclipse.jetty.http2.frames.Frame
-
- org.eclipse.jetty.http2.frames.GoAwayFrame
-
public class GoAwayFrame extends Frame
-
-
Field Summary
Fields Modifier and Type Field Description static GoAwayFrame
GRACEFUL
-
Fields inherited from class org.eclipse.jetty.http2.frames.Frame
DEFAULT_MAX_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH
-
-
Constructor Summary
Constructors Constructor Description GoAwayFrame(int lastStreamId, int error, byte[] payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getError()
int
getLastStreamId()
byte[]
getPayload()
boolean
isGraceful()
java.lang.String
toString()
java.lang.String
tryConvertPayload()
-
-
-
Field Detail
-
GRACEFUL
public static final GoAwayFrame GRACEFUL
-
-
Method Detail
-
isGraceful
public boolean isGraceful()
- Returns:
- whether this GOAWAY frame is graceful, i.e. its
lastStreamId == Integer.MAX_VALUE
-
getLastStreamId
public int getLastStreamId()
-
getError
public int getError()
-
getPayload
public byte[] getPayload()
-
tryConvertPayload
public java.lang.String tryConvertPayload()
-
-