Class XmlRootElementJaxbProvider.General
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<T>
org.glassfish.jersey.jaxb.internal.AbstractJaxbProvider<Object>
org.glassfish.jersey.jaxb.internal.AbstractRootElementJaxbProvider
org.glassfish.jersey.jaxb.internal.XmlRootElementJaxbProvider
org.glassfish.jersey.jaxb.internal.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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.glassfish.jersey.jaxb.internal.XmlRootElementJaxbProvider
XmlRootElementJaxbProvider.App, XmlRootElementJaxbProvider.General, XmlRootElementJaxbProvider.Text
-
Field Summary
Fields inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
UTF8
-
Constructor Summary
-
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.XmlRootElementJaxbProvider
readFrom
Methods inherited from class org.glassfish.jersey.jaxb.internal.AbstractRootElementJaxbProvider
isReadable, isWriteable, readFrom, writeTo, 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
-
-
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<Object>
- Parameters:
m
- media type to be checked for support.- Returns:
true
if the media type is supported by the entity provider,false
otherwise.
-