Package org.restlet.engine.application
Class MetadataExtension
- java.lang.Object
-
- org.restlet.engine.application.MetadataExtension
-
public class MetadataExtension extends java.lang.ObjectAssociates an extension name and a metadata.
-
-
Constructor Summary
Constructors Constructor Description MetadataExtension(java.lang.String name, Metadata metadata)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharacterSetgetCharacterSet()Returns the character set.EncodinggetEncoding()Returns the encoding.LanguagegetLanguage()Returns the language.MediaTypegetMediaType()Returns the media type.MetadatagetMetadata()Returns the metadata.java.lang.StringgetName()Returns the extension name.
-
-
-
Field Detail
-
metadata
private final Metadata metadata
The mapped metadata.
-
name
private final java.lang.String name
The name of the extension.
-
-
Constructor Detail
-
MetadataExtension
public MetadataExtension(java.lang.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 java.lang.String getName()
Returns the extension name.- Returns:
- The extension name.
-
-