|
||||||||||
| 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.ResponseHeader
|
+--jain.protocol.ip.sip.header.ServerHeader
This class represents the Server response-header. A ServerHeader contains information about the software used by the server to handle the request. A ResponseMessage can contain multiple ServerHeaders identifying the server and any significant subproducts. The ServerHeaders are listed in order of their significance for identifying the application.
If the ResponseMessage is being forwarded through a proxy, the proxy application must not modify the ServerHeaders. Instead, it should include a ViaHeader
Note: Revealing the specific software version of the server may allow the server machine to become more vulnerable to attacks against software that is known to contain security holes. Server implementers are encouraged to make this field a configurable option.
ViaHeader| Field Summary | |
static java.lang.String |
token
Token of ServerHeader |
| Fields inherited from class jain.protocol.ip.sip.header.Header |
ENTITY_HEADER,
GENERAL_HEADER,
REQUEST_HEADER,
RESPONSE_HEADER |
| Constructor Summary | |
ServerHeader(java.lang.String productName,
boolean isComment)
Creates a ServerHeader based on given product name and boolean value indicating if the product name is a comment |
|
ServerHeader(java.lang.String productName,
java.lang.String productVersion)
Creates a ServerHeader based on given product name and product version |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of ServerHeader |
boolean |
equals(ServerHeader serverHeader)
Indicates whether some other ServerHeader is "equal to" this one |
java.lang.String |
getComment()
Gets comment of ServerHeader |
java.lang.String |
getProductName()
Gets product name of ServerHeader |
java.lang.String |
getProductVersion()
Gets product version of ServerHeader |
java.lang.String |
getValue()
Gets value of ServerHeader |
boolean |
hasComment()
Returns boolean value indicating if ServerHeader has comment |
boolean |
hasProductName()
Returns boolean value to indicating if ServerHeader has product name |
boolean |
hasProductVersion()
Returns boolean value to indicating if ServerHeader has product version |
void |
removeProductVersion()
Removes product version from ServerHeader |
void |
setComment(java.lang.String comment)
Sets comment of ServerHeader |
void |
setProductName(java.lang.String productName)
Sets product name of ServerHeader |
void |
setProductVersion(java.lang.String productVersion)
Sets product version of ServerHeader |
| 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 ServerHeader(java.lang.String productName,
boolean isComment)
throws java.lang.IllegalArgumentException
productName - product nameisComment - boolean value
indicating if the product name is a comment
public ServerHeader(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(ServerHeader serverHeader)
serverHeader - the ServerHeader with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems