Class XmlJaxbElementProvider.General
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<T>
org.glassfish.jersey.jaxb.internal.AbstractJaxbProvider<jakarta.xml.bind.JAXBElement<?>>
org.glassfish.jersey.jaxb.internal.AbstractJaxbElementProvider
org.glassfish.jersey.jaxb.internal.XmlJaxbElementProvider
org.glassfish.jersey.jaxb.internal.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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.glassfish.jersey.jaxb.internal.XmlJaxbElementProvider
XmlJaxbElementProvider.App, XmlJaxbElementProvider.General, XmlJaxbElementProvider.Text
-
Field Summary
Fields inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
UTF8
-
Constructor Summary
ConstructorDescriptionGeneral
(jakarta.inject.Provider<SAXParserFactory> spf, Providers ps, Configuration config) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Check if the given media type is supported by this JAXB entity provider.Methods inherited from class org.glassfish.jersey.jaxb.internal.XmlJaxbElementProvider
readFrom, writeTo
Methods inherited from class org.glassfish.jersey.jaxb.internal.AbstractJaxbElementProvider
isReadable, isWriteable, readFrom, writeTo
Methods inherited from class org.glassfish.jersey.jaxb.internal.AbstractJaxbProvider
getMarshaller, getSAXSource, getStoredJaxbContext, getUnmarshaller, isFormattedOutput, isXmlRootElementProcessing, setConfiguration, setHeader
Methods inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
-
Constructor Details
-
General
@Inject public General(@Context jakarta.inject.Provider<SAXParserFactory> spf, @Context Providers ps, @Context Configuration config)
-
-
Method Details
-
isSupported
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 classAbstractJaxbProvider<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.
-