jain.protocol.ip.sip.header
Class AllowHeader
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.ResponseHeader
|
+--jain.protocol.ip.sip.header.AllowHeader
- public final class AllowHeader
- extends ResponseHeader
This class represents the Allow entity-header.
The AllowHeader specifies a method supported by
the resource identified by the Request-URI of a RequestMessage.
An AllowHeader must be present in a ResponseMessage with a status code
CLIENT_ERROR_METHOD_NOT_ALLOWED, and should be present in a
ResponseMessage to an OptionsMessage
- Version:
- 0.6
|
Field Summary |
static java.lang.String |
token
Token of AuthorizationHeader |
|
Constructor Summary |
AllowHeader(java.lang.String method)
Creates an AllowHeader based on given method |
|
Method Summary |
java.lang.Object |
clone()
Creates and returns a copy of AllowHeader |
boolean |
equals(AllowHeader allowHeader)
Indicates whether some other AllowHeader is "equal to" this one |
java.lang.String |
getMethod()
Gets method of AllowHeader |
java.lang.String |
getValue()
Gets value of AllowHeader |
void |
setMethod(java.lang.String method)
Sets method of AllowHeader |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
token
public static final java.lang.String token
- Token of AuthorizationHeader
AllowHeader
public AllowHeader(java.lang.String method)
throws java.lang.IllegalArgumentException
- Creates an AllowHeader based on given method
- Parameters:
method - method- Throws:
- java.lang.IllegalArgumentException - if method is null or zero-length
getMethod
public java.lang.String getMethod()
- Gets method of AllowHeader
- Returns:
- method of AllowHeader
setMethod
public void setMethod(java.lang.String method)
throws java.lang.IllegalArgumentException
- Sets method of AllowHeader
- Parameters:
method - method- Throws:
- java.lang.IllegalArgumentException - if method is null or zero-length
getValue
public java.lang.String getValue()
- Gets value of AllowHeader
- Overrides:
- getValue in class Header
- Returns:
- value of AllowHeader
clone
public java.lang.Object clone()
- Creates and returns a copy of AllowHeader
- Overrides:
- clone in class Header
- Returns:
- copy of AllowHeader
equals
public boolean equals(AllowHeader allowHeader)
- Indicates whether some other AllowHeader is "equal to" this one
- Parameters:
allowHeader - the AllowHeader with which to compare
If you have any comments or queries, please mail them to JAIN-SIP-interest@sun.com
Copyright - 2000 Sun Microsystems