Class WebAppExcMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.WebApplicationException>

    @Deprecated
    public class WebAppExcMapper
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.WebApplicationException>
    Deprecated.
    Will be removed in next minor release.
    The exception mapper for WebApplicationExceptions.
    • Constructor Summary

      Constructors 
      Constructor Description
      WebAppExcMapper()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      private boolean addExtensions​(ExtendedUriBuilder uriBuilder, javax.ws.rs.core.Variant variant)
      Deprecated.
      Adds the extensions for the given Variant.
      private java.util.Collection<javax.ws.rs.core.Variant> getAcceptedVariants​(javax.ws.rs.WebApplicationException wae)
      Deprecated.
       
      private java.util.Collection<javax.ws.rs.core.Variant> getSupportedVariants​(javax.ws.rs.WebApplicationException wae)
      Deprecated.
       
      private javax.ws.rs.core.Response giveOtherVariant​(java.util.Collection<javax.ws.rs.core.Variant> acceptedVariants, javax.ws.rs.core.Response response)
      Deprecated.
      Creates an entity with a list of links to the accepted variants.
      private javax.ws.rs.core.Response requestOtherVariants​(java.util.Collection<javax.ws.rs.core.Variant> supportedVariants, javax.ws.rs.core.Response response)
      Deprecated.
      Creates an entity with a list of links to the supported variants.
      javax.ws.rs.core.Response toResponse​(javax.ws.rs.WebApplicationException wae)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • httpHeaders

        @Context
        private javax.ws.rs.core.HttpHeaders httpHeaders
        Deprecated.
    • Constructor Detail

      • WebAppExcMapper

        public WebAppExcMapper()
        Deprecated.
    • Method Detail

      • addExtensions

        private boolean addExtensions​(ExtendedUriBuilder uriBuilder,
                                      javax.ws.rs.core.Variant variant)
        Deprecated.
        Adds the extensions for the given Variant.
        Parameters:
        uriBuilder - the UriBuilder to add the extensions.
        variant - the Variant to add the extensions for.
        Returns:
        true, if the extensions where added, or false, if the extension for the media type is not available.
      • getAcceptedVariants

        private java.util.Collection<javax.ws.rs.core.Variant> getAcceptedVariants​(javax.ws.rs.WebApplicationException wae)
        Deprecated.
        Returns:
        the allowed variants for an unsupported media type exception, or null if they could not be found.
      • getSupportedVariants

        private java.util.Collection<javax.ws.rs.core.Variant> getSupportedVariants​(javax.ws.rs.WebApplicationException wae)
        Deprecated.
        Returns:
        the allowed variants for an unsupported media type exception, or null if they could not be found.
      • giveOtherVariant

        private javax.ws.rs.core.Response giveOtherVariant​(java.util.Collection<javax.ws.rs.core.Variant> acceptedVariants,
                                                           javax.ws.rs.core.Response response)
        Deprecated.
        Creates an entity with a list of links to the accepted variants.
      • requestOtherVariants

        private javax.ws.rs.core.Response requestOtherVariants​(java.util.Collection<javax.ws.rs.core.Variant> supportedVariants,
                                                               javax.ws.rs.core.Response response)
        Deprecated.
        Creates an entity with a list of links to the supported variants.
        Parameters:
        supportedVariants - the supported variants
        response - the Response to add the entity to.
        Returns:
        a Response with a list of the given variants as entity. If the supportedVariants is null, the given Response is returned.
      • toResponse

        public javax.ws.rs.core.Response toResponse​(javax.ws.rs.WebApplicationException wae)
        Deprecated.
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.WebApplicationException>
        See Also:
        javax.ws.rs.ext.ExceptionMapper#toResponse(java.lang.Object)