Class ExtensionBackwardMapping
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.provider.ExtensionBackwardMapping
-
@Deprecated public class ExtensionBackwardMapping extends java.lang.ObjectDeprecated.Will be removed in next minor release.Allows a backward mapping for the extension mapping.
-
-
Field Summary
Fields Modifier and Type Field Description private MetadataServicemetadataServiceDeprecated.
-
Constructor Summary
Constructors Constructor Description ExtensionBackwardMapping(MetadataService metadataService)Deprecated.Creates a new ExtensionBackwardMapping
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetByEncoding(java.lang.String encoding)Deprecated.Returns the virtual extension for the given encoding.java.lang.StringgetByLanguage(java.util.Locale language)Deprecated.Returns the virtual extension for the given language.java.lang.StringgetByMediaType(javax.ws.rs.core.MediaType mediaType)Deprecated.Returns the virtual extension for the givenMediaType.
-
-
-
Field Detail
-
metadataService
private final MetadataService metadataService
Deprecated.
-
-
Constructor Detail
-
ExtensionBackwardMapping
public ExtensionBackwardMapping(MetadataService metadataService)
Deprecated.Creates a new ExtensionBackwardMapping- Parameters:
metadataService- the metadata service of theJaxRsApplication.
-
-
Method Detail
-
getByEncoding
public java.lang.String getByEncoding(java.lang.String encoding)
Deprecated.Returns the virtual extension for the given encoding.- Parameters:
encoding- the encoding to get the virtual file extension for.- Returns:
- the extension for the given encoding. Returns null, if no mapping could be found.
-
getByLanguage
public java.lang.String getByLanguage(java.util.Locale language)
Deprecated.Returns the virtual extension for the given language.- Parameters:
language- the language to get the virtual file extension for.- Returns:
- the extension for the given language. Returns null, if no mapping could be found.
-
getByMediaType
public java.lang.String getByMediaType(javax.ws.rs.core.MediaType mediaType)
Deprecated.Returns the virtual extension for the givenMediaType.- Parameters:
mediaType- the JAX-RS media type to get the virtual file extension for.- Returns:
- the extension for the given
MediaType. Returns null, if no mapping could be found.
-
-