Class ExtensionBackwardMapping


  • @Deprecated
    public class ExtensionBackwardMapping
    extends java.lang.Object
    Deprecated.
    Will be removed in next minor release.
    Allows a backward mapping for the extension mapping.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getByEncoding​(java.lang.String encoding)
      Deprecated.
      Returns the virtual extension for the given encoding.
      java.lang.String getByLanguage​(java.util.Locale language)
      Deprecated.
      Returns the virtual extension for the given language.
      java.lang.String getByMediaType​(javax.ws.rs.core.MediaType mediaType)
      Deprecated.
      Returns the virtual extension for the given MediaType.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 the JaxRsApplication.
    • 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 given MediaType.
        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.