JSIP API v1.2
November 2006

javax.sip.header
Interface MediaType

All Known Subinterfaces:
AcceptHeader, ContentTypeHeader

public interface MediaType

This interface represents media type methods for any header that contain content type and content sub-type values.

Author:
BEA Systems, NIST
See Also:
AcceptHeader, ContentTypeHeader

Method Summary
 java.lang.String getContentSubType()
          Gets media sub-type of Header with Content sub-type.
 java.lang.String getContentType()
          Gets media type of Header with Content type.
 void setContentSubType(java.lang.String contentSubType)
          Sets value of media subtype of Header with Content sub-type.
 void setContentType(java.lang.String contentType)
          Sets value of media type of Header with Content Type.
 

Method Detail

setContentType

void setContentType(java.lang.String contentType)
                    throws java.text.ParseException
Sets value of media type of Header with Content Type.

Parameters:
contentType - - the new string value of the content type
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the contentType value.

getContentType

java.lang.String getContentType()
Gets media type of Header with Content type.

Returns:
media type of Header with Content type.

setContentSubType

void setContentSubType(java.lang.String contentSubType)
                       throws java.text.ParseException
Sets value of media subtype of Header with Content sub-type.

Parameters:
contentSubType - - the new string value of the content sub-type.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the contentSubType value.

getContentSubType

java.lang.String getContentSubType()
Gets media sub-type of Header with Content sub-type.

Returns:
media sub-type of Header with Content sub-type.

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems