Class XmlCollectionJaxbProvider.General

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<java.lang.Object>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
    Enclosing class:
    XmlCollectionJaxbProvider

    @Produces("*/*")
    @Consumes("*/*")
    @Singleton
    public static final class XmlCollectionJaxbProvider.General
    extends XmlCollectionJaxbProvider
    JAXB provider for marshalling/un-marshalling collections from/to entities of <type>/<sub-type>+xml media types.
    • Constructor Detail

      • General

        public General​(@Context
                       javax.inject.Provider<javax.xml.stream.XMLInputFactory> xif,
                       @Context
                       javax.ws.rs.ext.Providers ps)
    • Method Detail

      • isSupported

        protected boolean isSupported​(javax.ws.rs.core.MediaType m)
        Description copied from class: AbstractJaxbProvider
        Check if the given media type is supported by this JAXB entity provider.

        Subclasses can override this method. Default implementation always returns true.

        Overrides:
        isSupported in class AbstractJaxbProvider<java.lang.Object>
        Parameters:
        m - media type to be checked for support.
        Returns:
        true if the media type is supported by the entity provider, false otherwise.