org.apache.rat.api
Class ContentType

java.lang.Object
  extended by org.apache.rat.api.ContentType

public class ContentType
extends Object

Describe the MIME content type of a resource.


Constructor Summary
ContentType(String mediaType, String subType, Map parameters)
          Constructs content types, performing an necessary conversions.
 
Method Summary
 String getMediaType()
          Gets the media type, normalised to lower case.
 Map getParameters()
          Gets an immutable map containing all content type parameters with keys normalised to lower case.
 String getSubType()
          Gets the media sub type normalised to lower case
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentType

public ContentType(String mediaType,
                   String subType,
                   Map parameters)
Constructs content types, performing an necessary conversions.

Parameters:
mediaType - not null
subType - not null
parameters - not null
Method Detail

getMediaType

public String getMediaType()
Gets the media type, normalised to lower case.

Returns:
media type, not null

getSubType

public String getSubType()
Gets the media sub type normalised to lower case

Returns:
sub type, not null

getParameters

public Map getParameters()
Gets an immutable map containing all content type parameters with keys normalised to lower case.

Returns:
not null


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.