NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

javax.sip.header
Interface MediaType

All Known Subinterfaces:
AcceptHeader, ContentTypeHeader
All Known Implementing Classes:
Accept, ContentType

public interface MediaType

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

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

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

Method Detail

setContentType

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

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

getContentType

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

Returns:
media type of Header with Content type.

setContentSubType

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

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

getContentSubType

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

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

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.