Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unpublished - rights reserved under the Copyright Laws of the United States. Copyright � 2003 Sun Microsystems, Inc. All rights reserved. Copyright � 2005 BEA Systems, Inc. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Module Name : JSIP Specification File Name : MediaType.java Author : Phelim O'Doherty HISTORY Version Date Author Comments 1.1 08/10/2002 Phelim O'Doherty ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
package javax.sip.header;
This interface represents media type methods for any header that contain content type and content sub-type values.

Author(s):
BEA Systems, NIST
Version:
1.2
See also:
javax.sip.header.AcceptHeader
javax.sip.header.ContentTypeHeader
public interface MediaType {

    
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.
    public void setContentType(String contentTypethrows ParseException;

    
Gets media type of Header with Content type.

Returns:
media type of Header with Content type.
    public String getContentType();

    
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.
    public void setContentSubType(String contentSubTypethrows ParseException;

    
Gets media sub-type of Header with Content sub-type.

Returns:
media sub-type of Header with Content sub-type.
    public String getContentSubType();
New to GrepCode? Check out our FAQ X