Class XmlRootElementJaxbProvider.General

All Implemented Interfaces:
MessageBodyReader<Object>, MessageBodyWriter<Object>
Enclosing class:
XmlRootElementJaxbProvider

@Produces("*/*") @Consumes("*/*") @Singleton public static final class XmlRootElementJaxbProvider.General extends XmlRootElementJaxbProvider
Provider for marshalling/un-marshalling JAXB root element and type instances from/to entities of <type>/<sub-type>+xml media types.
  • Constructor Details

  • Method Details

    • isSupported

      protected boolean isSupported(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<Object>
      Parameters:
      m - media type to be checked for support.
      Returns:
      true if the media type is supported by the entity provider, false otherwise.