public static enum RawMessage.State extends java.lang.Enum<RawMessage.State>
Enum Constant and Description |
---|
CONSUME_COLON |
CONSUME_DIGIT |
CONSUME_LWS |
EXPECT_COLON |
GET_HEADERS
Consume all headers.
|
GET_INITIAL_LINE
While in this state, we will consume the initial line in the SIP
message.
|
GET_PAYLOAD
Once we have found the separator between the headers and the payload
we will just blindly a byte at a time until we have read the entire
payload.
|
INIT
In the INIT state we will consume any CRLF we find.
|
IS_CONTENT_LENGTH_HEADER
Whenever we encounter something that potentially could be the start
of the Content-Length header we will enter this state.
|
Modifier and Type | Method and Description |
---|---|
static RawMessage.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RawMessage.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RawMessage.State INIT
public static final RawMessage.State GET_INITIAL_LINE
public static final RawMessage.State GET_HEADERS
public static final RawMessage.State GET_PAYLOAD
public static final RawMessage.State IS_CONTENT_LENGTH_HEADER
GET_HEADERS
.public static final RawMessage.State CONSUME_COLON
public static final RawMessage.State CONSUME_LWS
public static final RawMessage.State EXPECT_COLON
public static final RawMessage.State CONSUME_DIGIT
public static RawMessage.State[] values()
for (RawMessage.State c : RawMessage.State.values()) System.out.println(c);
public static RawMessage.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014. All Rights Reserved.