|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentLengthHeader
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, hashCode, toString |
Field Detail |
---|
static final java.lang.String NAME
Method Detail |
---|
void setContentLength(int contentLength) throws InvalidArgumentException
contentLength
- the content-length of the message body
as a decimal number of octets.
InvalidArgumentException
- if contentLength is less than zero.int getContentLength()
|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |