jain.protocol.ip.sip.header
Class ResponseHeader
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.ResponseHeader
- Direct Known Subclasses:
- AllowHeader, ProxyAuthenticateHeader, ServerHeader, UnsupportedHeader, WarningHeader, WWWAuthenticateHeader
- public class ResponseHeader
- extends Header
This class represents a response-header.
ResponseHeaders allow the server to pass additional
information about the ResponseMessage which cannot be placed in the Status-
Line. These Headers give information about the server and about
further access to the resource identified by the RequestURI.
ResponseHeader names can be extended reliably only in
combination with a change in the protocol version. However, new or
experimental Headers may be given the semantics of ResponseHeaders if all
parties in the communication recognize them to be ResponseHeaders.
Unrecognized Headers are treated as EntityHeaders.
- Version:
- 0.6
- See Also:
EntityHeader,
ResponseMessage
|
Constructor Summary |
ResponseHeader(java.lang.String token)
Creates a ResponseHeader based on given token |
ResponseHeader(java.lang.String token,
java.lang.String value)
Creates a ResponseHeader based on given token and value |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ResponseHeader
public ResponseHeader(java.lang.String token)
throws java.lang.IllegalArgumentException
- Creates a ResponseHeader based on given token
- Parameters:
token - token- Throws:
- java.lang.IllegalArgumentException - if token is null or zero-length
ResponseHeader
public ResponseHeader(java.lang.String token,
java.lang.String value)
throws java.lang.IllegalArgumentException
- Creates a ResponseHeader based on given token and value
- Parameters:
token - tokenvalue - value- Throws:
- java.lang.IllegalArgumentException - if token or value are null or zero-length
If you have any comments or queries, please mail them to JAIN-SIP-interest@sun.com
Copyright - 2000 Sun Microsystems