com.noelios.restlet.http
Class ContentType

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

public class ContentType
extends Object

Association of a media type and a character set.

Author:
Jerome Louvel (contact@noelios.com)

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

Constructor Detail

ContentType

public ContentType(String headerValue)
Constructor.

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

getMediaType

public MediaType getMediaType()
Returns the media type.

Returns:
The media type.

getCharacterSet

public CharacterSet getCharacterSet()
Returns the character set.

Returns:
The character set.


Copyright © 2005-2007 Noelios Consulting.