org.restlet.engine.application
Class MetadataExtension

java.lang.Object
  extended by org.restlet.engine.application.MetadataExtension

public class MetadataExtension
extends Object

Associates an extension name and a metadata.

Author:
Alex Milowski (alexml@milowski.org), Thierry Boileau

Constructor Summary
MetadataExtension(String name, Metadata metadata)
          Constructor.
 
Method Summary
 CharacterSet getCharacterSet()
          Returns the character set.
 Encoding getEncoding()
          Returns the encoding.
 Language getLanguage()
          Returns the language.
 MediaType getMediaType()
          Returns the media type.
 Metadata getMetadata()
          Returns the metadata.
 String getName()
          Returns the extension name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataExtension

public MetadataExtension(String name,
                         Metadata metadata)
Constructor.

Parameters:
name - The extension name.
metadata - The metadata.
Method Detail

getCharacterSet

public CharacterSet getCharacterSet()
Returns the character set.

Returns:
the character set.

getEncoding

public Encoding getEncoding()
Returns the encoding.

Returns:
the encoding.

getLanguage

public Language getLanguage()
Returns the language.

Returns:
the language.

getMediaType

public MediaType getMediaType()
Returns the media type.

Returns:
the media type.

getMetadata

public Metadata getMetadata()
Returns the metadata.

Returns:
the metadata.

getName

public String getName()
Returns the extension name.

Returns:
The extension name.


Copyright © 2005-2013 Restlet.