public enum StreamStatus extends Enum<StreamStatus>
An enumeration of stream statuses.
Enum Constant and Description |
---|
CANCEL_STREAM
The stream status indicating that the stream is no longer needed
|
FLOW_CONTROL_ERROR
The stream status indicating a flow control error
|
FRAME_TOO_LARGE
The stream status indicating that the implementation could not support a frame too large
|
INTERNAL_ERROR
The stream status indicating an implementation error
|
INVALID_CREDENTIALS
The stream status indicating credentials not valid
|
INVALID_STREAM
The stream status indicating that the stream is not valid
|
PROTOCOL_ERROR
The stream status indicating a protocol error
|
REFUSED_STREAM
The stream status indicating that the stream has been refused
|
STREAM_ALREADY_CLOSED
The stream status indicating data on a stream already closed
|
STREAM_IN_USE
The stream status indicating a stream opened more than once
|
UNSUPPORTED_VERSION
The stream status indicating that the implementation does not support the SPDY version of the stream
|
Modifier and Type | Method and Description |
---|---|
static StreamStatus |
from(short version,
int code) |
int |
getCode(short version) |
static StreamStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamStatus PROTOCOL_ERROR
The stream status indicating a protocol error
public static final StreamStatus INVALID_STREAM
The stream status indicating that the stream is not valid
public static final StreamStatus REFUSED_STREAM
The stream status indicating that the stream has been refused
public static final StreamStatus UNSUPPORTED_VERSION
The stream status indicating that the implementation does not support the SPDY version of the stream
public static final StreamStatus CANCEL_STREAM
The stream status indicating that the stream is no longer needed
public static final StreamStatus INTERNAL_ERROR
The stream status indicating an implementation error
public static final StreamStatus FLOW_CONTROL_ERROR
The stream status indicating a flow control error
public static final StreamStatus STREAM_IN_USE
The stream status indicating a stream opened more than once
public static final StreamStatus STREAM_ALREADY_CLOSED
The stream status indicating data on a stream already closed
public static final StreamStatus INVALID_CREDENTIALS
The stream status indicating credentials not valid
public static final StreamStatus FRAME_TOO_LARGE
The stream status indicating that the implementation could not support a frame too large
public static StreamStatus[] values()
for (StreamStatus c : StreamStatus.values()) System.out.println(c);
public static StreamStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static StreamStatus from(short version, int code)
version
- the SPDY protocol versioncode
- the stream status codeStreamStatus
from the given version and code,
or null if no such status existspublic int getCode(short version)
version
- the SPDY protocol versionCopyright © 1995-2015 Webtide. All Rights Reserved.