| |
|
| java.lang.Object gov.nist.core.GenericObject gov.nist.siplite.header.Header gov.nist.siplite.header.ParametersHeader gov.nist.siplite.header.ContentTypeHeader
ContentTypeHeader | public class ContentTypeHeader extends ParametersHeader (Code) | | ContentTypeHeader SIP Header
14.17 Content-Type
The Content-Type entity-header field indicates the media type of the
entity-body sent to the recipient or, in the case of the HEAD method,
the media type that would have been sent had the request been a GET.
Format: Content-Type = "Content-Type" ":" media-type
For details please see RFC 2616, section 14.17
version: JAIN-SIP-1.1 version: This code is in the public domain. |
NAME | final public static String NAME(Code) | | Media range header field label.
|
ContentTypeHeader | public ContentTypeHeader()(Code) | | Default constructor.
|
ContentTypeHeader | public ContentTypeHeader(String contentType, String contentSubtype)(Code) | | Constructor given a content type and subtype.
Parameters: contentType - is the content type. Parameters: contentSubtype - is the content subtype |
clone | public Object clone()(Code) | | Copies the current instance.
copy od the current object |
compareMediaRange | public int compareMediaRange(String media)(Code) | | Compares two MediaRange headers.
Parameters: media - String to set int. |
encodeBody | public String encodeBody()(Code) | | Encodes into a canonical string.
String. |
getCharset | public String getCharset()(Code) | | Gets the charset parameter.
the content type header value |
getContentSubType | public String getContentSubType()(Code) | | Gets the content subtype.
the content subtype string (or null if not set). |
getContentTypeHeader | public String getContentTypeHeader()(Code) | | Get the content subtype.
the content tyep string (or null if not set). |
getMediaRange | public MediaRange getMediaRange()(Code) | | Gets the mediaRange field.
MediaRange. |
getMediaSubType | public String getMediaSubType()(Code) | | Gets the MediaSubType field.
String. |
getMediaType | public String getMediaType()(Code) | | Gets the Media Type.
String. |
getValue | public Object getValue()(Code) | | Gets the content type header value.
the content type |
setContentSubType | public void setContentSubType(String contentType)(Code) | | Sets the content subtype.
Parameters: contentType - String to set |
setContentType | public void setContentType(String contentType, String contentSubType)(Code) | | Sets the content type and subtype.
Parameters: contentType - Content type string. Parameters: contentSubType - content subtype string |
setContentType | public void setContentType(String contentType)(Code) | | Sets the content type.
Parameters: contentType - Content type string. |
setMediaRange | public void setMediaRange(MediaRange m)(Code) | | Sets the mediaRange member
Parameters: m - mediaRange field. |
|
|
|