|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SipMessageType>
org.lastbamboo.common.sip.stack.codec.SipMessageType
public enum SipMessageType
Enumeration of first words in SIP messages. Most are request types, while the SIP version indicates a response.
| Enum Constant Summary | |
|---|---|
DOUBLE_CRLF
The double CRLF keep-alive message from SIP outbound. |
|
INVITE
INVITE method. |
|
REGISTER
REGISTER method. |
|
SIP_2_0
SIP/2.0 version string. |
|
UNKNOWN
Unknown message type. |
|
| Method Summary | |
|---|---|
static boolean |
contains(String type)
Returns whether or not the specified string matches one of the message types. |
String |
convert()
Converts the enum to a String. |
static SipMessageType |
convert(String type)
Converts from the int type representation to the enum equivalent. |
static SipMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SipMessageType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SipMessageType REGISTER
public static final SipMessageType INVITE
public static final SipMessageType SIP_2_0
public static final SipMessageType DOUBLE_CRLF
public static final SipMessageType UNKNOWN
| Method Detail |
|---|
public static SipMessageType[] values()
for (SipMessageType c : SipMessageType.values()) System.out.println(c);
public static SipMessageType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String convert()
String.
String for the enum.public static SipMessageType convert(String type)
type - The int type.
public static boolean contains(String type)
type - The type to match.
true if there's a matching type, otherwise
false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||