Class AbstractProviderWrapper

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractProviderWrapper​(java.lang.Class<?> jaxRsProviderClass)
      Deprecated.
      Creates a new wrapper for a Provider and initializes the provider.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      abstract boolean equals​(java.lang.Object otherProvider)
      Deprecated.
       
      abstract java.lang.String getClassName()
      Deprecated.
       
      java.util.List<MediaType> getConsumedMimes()
      Deprecated.
      Returns the list of produced MediaTypes of the wrapped MessageBodyWriter.
      java.util.List<MediaType> getProducedMimes()
      Deprecated.
      Returns the list of produced MediaTypes of the wrapped MessageBodyWriter.
      abstract int hashCode()
      Deprecated.
       
      (package private) void initProvider​(java.lang.Object jaxRsProvider, ThreadLocalizedContext tlContext, javax.ws.rs.ext.Providers allProviders, ExtensionBackwardMapping extensionBackwardMapping)
      Deprecated.
      initializes the provider (injection into annotated fields and setters).
      abstract boolean isContextResolver()
      Deprecated.
      Returns true, if this ProviderWrapper is also a ContextResolver, otherwise false.
      abstract boolean isExceptionMapper()
      Deprecated.
      Checks, if this provider represents an ExceptionMapper.
      abstract boolean isReader()
      Deprecated.
      Returns true, if this ProviderWrapper is also a MessageBodyReader, otherwise false.
      abstract boolean isWriter()
      Deprecated.
      Returns true, if this ProviderWrapper is also a MessageBodyWriter, otherwise false.
      boolean supportsRead​(java.lang.Class<?> entityClass, java.lang.reflect.Type genericType)
      Deprecated.
      Checks, if this message body reader supports the given type (by the type parameter of the MessageBodyWriter)
      boolean supportsRead​(MediaType mediaType)
      Deprecated.
      Checks, if this MessageBodyReader supports the given MediaType.
      boolean supportsWrite​(java.lang.Class<?> entityClass, java.lang.reflect.Type genericType)
      Deprecated.
      Checks, if this message body writer supports the given type (by the type parameter of the MessageBodyWriter)
      boolean supportsWrite​(java.lang.Iterable<MediaType> mediaTypes)
      Deprecated.
      Checks, if the wrapped MessageBodyWriter supports at least one of the requested MediaTypes.
      boolean supportsWrite​(javax.ws.rs.core.MediaType requested)
      Deprecated.
      Checks, if the wrapped MessageBodyWriter supports at least one of the requested MediaTypes.
      boolean supportsWrite​(MediaType requested)
      Deprecated.
      Checks, if the wrapped MessageBodyWriter supports at least one of the requested MediaTypes.
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • consumedMimes

        private final java.util.List<MediaType> consumedMimes
        Deprecated.
        the mimes this MessageBodyReader consumes.
      • genericMbrType

        private final java.lang.Class<?> genericMbrType
        Deprecated.
      • genericMbwType

        private final java.lang.Class<?> genericMbwType
        Deprecated.
      • producedMimes

        private final java.util.List<MediaType> producedMimes
        Deprecated.
    • Constructor Detail

      • AbstractProviderWrapper

        AbstractProviderWrapper​(java.lang.Class<?> jaxRsProviderClass)
                         throws java.lang.IllegalArgumentException,
                                javax.ws.rs.WebApplicationException
        Deprecated.
        Creates a new wrapper for a Provider and initializes the provider. If the given class is not a provider, an IllegalArgumentException is thrown.
        Parameters:
        jaxRsProviderClass - the JAX-RS provider class.
        Throws:
        java.lang.IllegalArgumentException - if the class is not a valid provider, may not be instantiated or what ever.
        javax.ws.rs.WebApplicationException
        See Also:
        MessageBodyReader, MessageBodyWriter, ContextResolver
    • Method Detail

      • equals

        public abstract boolean equals​(java.lang.Object otherProvider)
        Deprecated.
        Specified by:
        equals in interface ProviderWrapper
        Overrides:
        equals in class java.lang.Object
      • getClassName

        public abstract java.lang.String getClassName()
        Deprecated.
        Specified by:
        getClassName in interface ProviderWrapper
        Returns:
        the JAX-RS provider class name
      • getProducedMimes

        public java.util.List<MediaType> getProducedMimes()
        Deprecated.
        Returns the list of produced MediaTypes of the wrapped MessageBodyWriter.
        Specified by:
        getProducedMimes in interface ProviderWrapper
        Returns:
        List of produced MediaTypes. If the entity provider is not annotated with @ Produces, '*/*' is returned.
      • hashCode

        public abstract int hashCode()
        Deprecated.
        Specified by:
        hashCode in interface ProviderWrapper
        Overrides:
        hashCode in class java.lang.Object
      • isContextResolver

        public abstract boolean isContextResolver()
        Deprecated.
        Returns true, if this ProviderWrapper is also a ContextResolver, otherwise false.
        Specified by:
        isContextResolver in interface ProviderWrapper
        Returns:
        true, if this ProviderWrapper is also a ContextResolver, otherwise false.
      • isExceptionMapper

        public abstract boolean isExceptionMapper()
        Deprecated.
        Checks, if this provider represents an ExceptionMapper.
        Specified by:
        isExceptionMapper in interface ProviderWrapper
        Returns:
        true, if this provider is an ExceptionMapper, or false if not.
      • isReader

        public abstract boolean isReader()
        Deprecated.
        Returns true, if this ProviderWrapper is also a MessageBodyReader, otherwise false.
        Specified by:
        isReader in interface ProviderWrapper
        Returns:
        true, if this ProviderWrapper is also a MessageBodyReader, otherwise false.
      • isWriter

        public abstract boolean isWriter()
        Deprecated.
        Returns true, if this ProviderWrapper is also a MessageBodyWriter, otherwise false.
        Specified by:
        isWriter in interface ProviderWrapper
        Returns:
        true, if this ProviderWrapper is also a MessageBodyWriter, otherwise false.
      • supportsRead

        public boolean supportsRead​(java.lang.Class<?> entityClass,
                                    java.lang.reflect.Type genericType)
        Deprecated.
        Checks, if this message body reader supports the given type (by the type parameter of the MessageBodyWriter)
        Parameters:
        entityClass - the type
        genericType - the generic type
        Returns:
        true, if this MessageBodyReader supports the given type, false, if not.
        See Also:
        MessageBodyReader.supportsRead(Class, Type)
      • supportsRead

        public boolean supportsRead​(MediaType mediaType)
        Deprecated.
        Checks, if this MessageBodyReader supports the given MediaType.
        Specified by:
        supportsRead in interface ProviderWrapper
        Parameters:
        mediaType -
        Returns:
        true, if the wrapped MessageBodyReader supports the read for the given media type.
      • supportsWrite

        public boolean supportsWrite​(java.lang.Class<?> entityClass,
                                     java.lang.reflect.Type genericType)
        Deprecated.
        Checks, if this message body writer supports the given type (by the type parameter of the MessageBodyWriter)
        Parameters:
        entityClass - the type
        genericType - the generic type
        Returns:
        true, if this MessageBodyWriter supports the given type, false, if not.
        See Also:
        MessageBodyWriter.supportsWrite(java.lang.Class, java.lang.reflect.Type)
      • supportsWrite

        public boolean supportsWrite​(java.lang.Iterable<MediaType> mediaTypes)
        Deprecated.
        Checks, if the wrapped MessageBodyWriter supports at least one of the requested MediaTypes.
        Specified by:
        supportsWrite in interface ProviderWrapper
        Parameters:
        mediaTypes - the MediaTypes
        Returns:
        true, if at least one of the requested MediaTypes is supported, otherwise false.
      • supportsWrite

        public boolean supportsWrite​(javax.ws.rs.core.MediaType requested)
        Deprecated.
        Description copied from interface: ProviderWrapper
        Checks, if the wrapped MessageBodyWriter supports at least one of the requested MediaTypes.
        Specified by:
        supportsWrite in interface ProviderWrapper
        Parameters:
        requested - the requested MediaTypes
        Returns:
        true, if at least one of the requested MediaTypes is supported, otherwise false.
      • supportsWrite

        public boolean supportsWrite​(MediaType requested)
        Deprecated.
        Checks, if the wrapped MessageBodyWriter supports at least one of the requested MediaTypes.
        Specified by:
        supportsWrite in interface ProviderWrapper
        Parameters:
        requested - the requested MediaTypes
        Returns:
        true, if at least one of the requested MediaTypes is supported, otherwise false.
      • toString

        public final java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object