Class XmlJaxbElementProvider.General

All Implemented Interfaces:
MessageBodyReader<jakarta.xml.bind.JAXBElement<?>>, MessageBodyWriter<jakarta.xml.bind.JAXBElement<?>>
Enclosing class:
XmlJaxbElementProvider

@Produces("*/*,*/*+xml") @Consumes("*/*,*/*+xml") @Singleton public static final class XmlJaxbElementProvider.General extends XmlJaxbElementProvider
Provider for marshalling/un-marshalling JAXB elements 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<jakarta.xml.bind.JAXBElement<?>>
      Parameters:
      m - media type to be checked for support.
      Returns:
      true if the media type is supported by the entity provider, false otherwise.