com.noelios.restlet.http
Class ContentType

java.lang.Object
  extended by com.noelios.restlet.http.ContentType

public class ContentType
extends java.lang.Object

Association of a media type and a character set.

Author:
Jerome Louvel

Constructor Summary
ContentType(java.lang.String headerValue)
          Constructor.
 
Method Summary
 CharacterSet getCharacterSet()
          Returns the character set.
 MediaType getMediaType()
          Returns the media type.
static MediaType parseContentType(java.lang.String headerValue)
          Parses the Content Type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentType

public ContentType(java.lang.String headerValue)
Constructor.

Parameters:
headerValue - The "Content-type" header to parse.
Method Detail

parseContentType

public static MediaType parseContentType(java.lang.String headerValue)
                                  throws java.io.IOException
Parses the Content Type.

Parameters:
headerValue -
Returns:
MediaType
Throws:
java.io.IOException

getCharacterSet

public CharacterSet getCharacterSet()
Returns the character set.

Returns:
The character set.

getMediaType

public MediaType getMediaType()
Returns the media type.

Returns:
The media type.


Copyright © 2005-2008 Noelios Technologies.