|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Content-Length header field indicates the size of the message-body, in decimal number of octets, sent to the recipient. Applications SHOULD use this field to indicate the size of the message-body to be transferred, regardless of the media type of the entity. If a stream-based protocol (such as TCP) is used as transport, the header field MUST be used.
The size of the message-body does not include the CRLF separating header fields and body. Any Content-Length greater than or equal to zero is a valid value. If no body is present in a message, then the Content-Length header field value MUST be set to zero.
ContentDispositionHeader,
ContentTypeHeader,
ContentEncodingHeader,
ContentLanguageHeader| Field Summary | |
static java.lang.String |
NAME
Name of ContentLengthHeader |
| Method Summary | |
int |
getContentLength()
Gets content-length of the message body. |
void |
setContentLength(int contentLength)
Set content-length of ContentLengthHeader. |
| Methods inherited from interface javax.sip.header.Header |
clone, equals, getName, toString |
| Field Detail |
public static final java.lang.String NAME
| Method Detail |
public void setContentLength(int contentLength)
throws InvalidArgumentException
InvalidArgumentException - if contentLength is less than zero.public int getContentLength()
|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||