Class XmlCollectionJaxbProvider.General
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<T>
org.glassfish.jersey.jaxb.internal.AbstractJaxbProvider<Object>
org.glassfish.jersey.jaxb.internal.AbstractCollectionJaxbProvider
org.glassfish.jersey.jaxb.internal.XmlCollectionJaxbProvider
org.glassfish.jersey.jaxb.internal.XmlCollectionJaxbProvider.General
- All Implemented Interfaces:
MessageBodyReader<Object>,MessageBodyWriter<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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.glassfish.jersey.jaxb.internal.XmlCollectionJaxbProvider
XmlCollectionJaxbProvider.App, XmlCollectionJaxbProvider.General, XmlCollectionJaxbProvider.TextNested classes/interfaces inherited from class org.glassfish.jersey.jaxb.internal.AbstractCollectionJaxbProvider
AbstractCollectionJaxbProvider.JaxbTypeChecker -
Field Summary
Fields inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
UTF8 -
Constructor Summary
ConstructorsConstructorDescriptionGeneral(jakarta.inject.Provider<XMLInputFactory> xif, Providers ps, Configuration config) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCheck if the given media type is supported by this JAXB entity provider.Methods inherited from class org.glassfish.jersey.jaxb.internal.XmlCollectionJaxbProvider
getXMLStreamReader, writeCollectionMethods inherited from class org.glassfish.jersey.jaxb.internal.AbstractCollectionJaxbProvider
getElementClass, getElementName, getRootElementName, isReadable, isWriteable, readFrom, verifyArrayType, verifyCollectionSubclass, verifyGenericType, writeToMethods inherited from class org.glassfish.jersey.jaxb.internal.AbstractJaxbProvider
getMarshaller, getSAXSource, getStoredJaxbContext, getUnmarshaller, isFormattedOutput, isXmlRootElementProcessing, setConfiguration, setHeaderMethods 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<XMLInputFactory> xif, @Context Providers ps, @Context Configuration config)
-
-
Method Details
-
isSupported
Description copied from class:AbstractJaxbProviderCheck if the given media type is supported by this JAXB entity provider.Subclasses can override this method. Default implementation always returns
true.- Overrides:
isSupportedin classAbstractJaxbProvider<Object>- Parameters:
m- media type to be checked for support.- Returns:
trueif the media type is supported by the entity provider,falseotherwise.
-