jain.protocol.ip.sip.header
Class EntityHeader
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.EntityHeader
- Direct Known Subclasses:
- ContentEncodingHeader, ContentLengthHeader, ContentTypeHeader
- public class EntityHeader
- extends Header
This class represents an entity-header.
EntityHeaders define meta-information about the
Message body or, if no body is present, about the resource identified
by the RequestMessage. The term "entity header" is an HTTP 1.1 term where
the ResponseMessage body can contain a transformed version of the RequestMessage
body. The original RequestMessage body is referred to as the "entity". We
retain the same terminology for Headers but usually refer to
the "message body" rather then the entity as the two are the same in
SIP.
- Version:
- 0.6
|
Constructor Summary |
EntityHeader(java.lang.String token)
Creates an EntityHeader based on given token |
EntityHeader(java.lang.String token,
java.lang.String value)
Creates an EntityHeader based on given token and value |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
EntityHeader
public EntityHeader(java.lang.String token)
throws java.lang.IllegalArgumentException
- Creates an EntityHeader based on given token
- Parameters:
token - token- Throws:
- java.lang.IllegalArgumentException - if token is null or zero-length
EntityHeader
public EntityHeader(java.lang.String token,
java.lang.String value)
throws java.lang.IllegalArgumentException
- Creates an EntityHeader 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