NIST SIP Parser and Stack (v1.2) API

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.

Since:
1.1
Author:
Sun Microsystems
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

public 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

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

Returns:
media type of Header with Content type.

setContentSubType

public 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

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

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

NIST SIP Parser and Stack (v1.2) API

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