JSIP API v1.2
November 2006

javax.sip.header
Interface AllowHeader

All Superinterfaces:
java.lang.Cloneable, Header, java.io.Serializable

public interface AllowHeader
extends Header

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

Author:
BEA Systems, NIST

Field Summary
static java.lang.String NAME
          Name of AllowHeader
 
Method Summary
 java.lang.String getMethod()
          Gets the method of the AllowHeader.
 void setMethod(java.lang.String method)
          Sets the Allow header value.
 
Methods inherited from interface javax.sip.header.Header
clone, equals, getName, hashCode, toString
 

Field Detail

NAME

static final java.lang.String NAME
Name of AllowHeader

See Also:
Constant Field Values
Method Detail

setMethod

void setMethod(java.lang.String method)
               throws java.text.ParseException
Sets the Allow header value. The argument may be a single method name (eg "ACK") or a comma delimited list of method names (eg "ACK, CANCEL, INVITE").

Parameters:
method - - the String defining the method supported in this AllowHeader
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the method supported.

getMethod

java.lang.String getMethod()
Gets the method of the AllowHeader. Returns null if no method is defined in this Allow Header.

Returns:
the string identifing the method of AllowHeader.

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems