|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AllowHeader
The Allow header field lists the set of methods supported by the User Agent generating the message. All methods, including ACK and CANCEL, understood by the User Agent MUST be included in the list of methods in the Allow header field, when present. The absence of an Allow header field MUST NOT be interpreted to mean that the User Agent sending the message supports no methods. Rather, it implies that the User Agent is not providing any information on what methods it supports. Supplying an Allow header field in responses to methods other than OPTIONS reduces the number of messages needed.
For Example:
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE
Field Summary | |
---|---|
static String |
NAME
Name of AllowHeader |
Method Summary | |
---|---|
String |
getMethod()
Gets the method of the AllowHeader. |
void |
setMethod(String method)
Sets the Allow header value. |
Methods inherited from interface javax.sip.header.Header |
---|
clone, equals, getName, hashCode, toString |
Field Detail |
---|
static final String NAME
Method Detail |
---|
void setMethod(String method) throws ParseException
method
- - the String defining the method supported
in this AllowHeader
ParseException
- which signals that an error has been reached
unexpectedly while parsing the method supported.String getMethod()
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |