|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.RequestHeader
|
+--jain.protocol.ip.sip.header.UserAgentHeader
This class represents the User-Agent request-header. A UserAgentHeader contains information about the user agent originating the RequestMessage. This is for statistical purposes, the tracing of protocol violations, and automated recognition of user agents for the sake of tailoring ResponseMessages to avoid particular user agent limitations. User agents should include this header with RequestMessages. RequestMessages can contain multiple UserAgentHeaders identifying the agent and any subproducts which form a significant part of the user agent. By convention, the UserAgentHeaders are listed in order of their significance for identifying the application. Similar security considerations apply for in ServerHeaders.
ServerHeader| Field Summary | |
static java.lang.String |
token
Token of UserAgentHeader |
| Fields inherited from class jain.protocol.ip.sip.header.Header |
ENTITY_HEADER,
GENERAL_HEADER,
REQUEST_HEADER,
RESPONSE_HEADER |
| Constructor Summary | |
UserAgentHeader(java.lang.String productName,
boolean isComment)
Creates a UserAgentHeader based on given product name and boolean value indicating if the product name is a comment |
|
UserAgentHeader(java.lang.String productName,
java.lang.String productVersion)
Creates a UserAgentHeader based on given product name and product version |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of UserAgentHeader |
boolean |
equals(UserAgentHeader userAgentHeader)
Indicates whether some other UserAgentHeader is "equal to" this one |
java.lang.String |
getComment()
Gets comment of UserAgentHeader |
java.lang.String |
getProductName()
Gets product name of UserAgentHeader |
java.lang.String |
getProductVersion()
Gets product version of UserAgentHeader |
java.lang.String |
getValue()
Gets value of UserAgentHeader |
boolean |
hasComment()
Returns boolean value indicating if UserAgentHeader has comment |
boolean |
hasProductName()
Returns boolean value to indicating if ServerHeader has product name |
boolean |
hasProductVersion()
Returns boolean value indicating if UserAgentHeader has product version |
void |
removeProductVersion()
Removes product version from UserAgentHeader |
void |
setComment(java.lang.String comment)
Sets comment of UserAgentHeader |
void |
setProductName(java.lang.String productName)
Sets product name of UserAgentHeader |
void |
setProductVersion(java.lang.String productVersion)
Sets product version of UserAgentHeader |
| Methods inherited from class jain.protocol.ip.sip.header.Header |
equals,
getHeaderType,
getToken,
setValue,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String token
| Constructor Detail |
public UserAgentHeader(java.lang.String productName,
boolean isComment)
throws java.lang.IllegalArgumentException
productName - product nameisComment - boolean value
indicating if the product name is a comment
public UserAgentHeader(java.lang.String productName,
java.lang.String productVersion)
productName - product nameproductVersion - product version| Method Detail |
public boolean hasComment()
public boolean hasProductName()
public boolean hasProductVersion()
public java.lang.String getProductName()
throws ParameterNotSetException
public java.lang.String getProductVersion()
throws ParameterNotSetException
public java.lang.String getComment()
throws ParameterNotSetException
public void setProductName(java.lang.String productName)
throws java.lang.IllegalArgumentException
productName - product name
public void setProductVersion(java.lang.String productVersion)
throws java.lang.IllegalArgumentException,
SipException
productVersion - product versionpublic void removeProductVersion()
public void setComment(java.lang.String comment)
comment - commentpublic java.lang.String getValue()
public java.lang.Object clone()
public boolean equals(UserAgentHeader userAgentHeader)
userAgentHeader - the UserAgentHeader with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems