public class SipMethods
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACK
Method name ACK, defined in RFC3261
|
static java.lang.String |
BYE
Method name BYE, defined in RFC3261
|
static java.lang.String |
CANCEL
Method name CANCEL, defined in RFC3261
|
protected static java.lang.String[] |
dialog_methods
Array of all methods that create a dialog
|
static java.lang.String |
INFO
Method name INFO, defined in RFC6086
|
static java.lang.String |
INVITE
Method name INVITE, defined in RFC3261
|
static java.lang.String |
MESSAGE
Method name MESSAGE, defined in RFC3428
|
protected static java.lang.String[] |
methods
Array of all standard methods, defined by RFC3261 and successive extensions (RFC 2976, RFC3262, RFC3311, RFC3428, etc.)
|
static java.lang.String |
NOTIFY
Method name NOTIFY, defined in RFC6665
|
static java.lang.String |
OPTIONS
Method name OPTIONS, defined in RFC3261
|
static java.lang.String |
PRACK
Method name PRACK, defined in RFC3262
|
static java.lang.String |
PUBLISH
Method name PUBLISH, defined in RFC3903
|
static java.lang.String |
REFER
Method name REFER, defined in RFC3515
|
static java.lang.String |
REGISTER
Method name REGISTER, defined in RFC3261
|
static java.lang.String |
SUBSCRIBE
Method name SUBSCRIBE, defined in RFC6665
|
static java.lang.String |
UPDATE
Method name UPDATE, defined in RFC3311
|
Constructor and Description |
---|
SipMethods() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getAllSipMethods()
Gets all standard SIP methods.
|
static java.lang.String[] |
getCreateDialogMethods()
Gets standard methods that create a SIP dialog.
|
static boolean |
isAck(java.lang.String name)
Whether the given method is ACK.
|
static boolean |
isBye(java.lang.String name)
Whether the given method is BYE.
|
static boolean |
isCancel(java.lang.String name)
Whether the given method is CANCEL.
|
static boolean |
isCreateDialogMethod(java.lang.String name)
Whether the given method creates a SIP dialog.
|
static boolean |
isInfo(java.lang.String name)
Whether the given method is INFO.
|
static boolean |
isInvite(java.lang.String name)
Whether the given method is INVITE.
|
static boolean |
isMessage(java.lang.String name)
Whether the given method is MESSAGE.
|
static boolean |
isNotify(java.lang.String name)
Whether the given method is NOTIFY.
|
static boolean |
isOptions(java.lang.String name)
Whether the given method is OPTIONS.
|
static boolean |
isPrack(java.lang.String name)
Whether the given method is PRACK.
|
static boolean |
isPublish(java.lang.String name)
Whether the given method is PUBLISH.
|
static boolean |
isRefer(java.lang.String name)
Whether the given method is REFER.
|
static boolean |
isRegister(java.lang.String name)
Whether the given method is REGISTER.
|
static boolean |
isSipMethod(java.lang.String name)
Whether the given method is a standard SIP method.
|
static boolean |
isSubscribe(java.lang.String name)
Whether the given method is SUBSCRIBE.
|
static boolean |
isUpdate(java.lang.String name)
Whether the given method is UPDATE.
|
protected static boolean |
same(java.lang.String s1,
java.lang.String s2)
Whether the two names are case-unsensitive-equal.
|
public static final java.lang.String ACK
public static final java.lang.String BYE
public static final java.lang.String CANCEL
public static final java.lang.String INFO
public static final java.lang.String INVITE
public static final java.lang.String MESSAGE
public static final java.lang.String NOTIFY
public static final java.lang.String OPTIONS
public static final java.lang.String PRACK
public static final java.lang.String PUBLISH
public static final java.lang.String REFER
public static final java.lang.String REGISTER
public static final java.lang.String SUBSCRIBE
public static final java.lang.String UPDATE
protected static java.lang.String[] methods
protected static final java.lang.String[] dialog_methods
public static boolean isAck(java.lang.String name)
name
- the method namepublic static boolean isBye(java.lang.String name)
name
- the method namepublic static boolean isCancel(java.lang.String name)
name
- the method namepublic static boolean isInfo(java.lang.String name)
name
- the method namepublic static boolean isInvite(java.lang.String name)
name
- the method namepublic static boolean isMessage(java.lang.String name)
name
- the method namepublic static boolean isNotify(java.lang.String name)
name
- the method namepublic static boolean isOptions(java.lang.String name)
name
- the method namepublic static boolean isPrack(java.lang.String name)
name
- the method namepublic static boolean isPublish(java.lang.String name)
name
- the method namepublic static boolean isRefer(java.lang.String name)
name
- the method namepublic static boolean isRegister(java.lang.String name)
name
- the method namepublic static boolean isSubscribe(java.lang.String name)
name
- the method namepublic static boolean isUpdate(java.lang.String name)
name
- the method namepublic static java.lang.String[] getAllSipMethods()
public static boolean isSipMethod(java.lang.String name)
name
- the method namepublic static java.lang.String[] getCreateDialogMethods()
public static boolean isCreateDialogMethod(java.lang.String name)
name
- the method nameprotected static boolean same(java.lang.String s1, java.lang.String s2)