@Produces(value="*/*,*/*+xml") @Consumes(value="*/*,*/*+xml") @Singleton public static final class XmlJaxbElementProvider.General extends XmlJaxbElementProvider
JAXB elements
from/to entities of <type>/<sub-type>+xml
media types.XmlJaxbElementProvider.App, XmlJaxbElementProvider.General, XmlJaxbElementProvider.Text
UTF8
Constructor and Description |
---|
General(javax.inject.Provider<SAXParserFactory> spf,
Providers ps,
Configuration config) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isSupported(MediaType m)
Check if the given media type is supported by this JAXB entity provider.
|
readFrom, writeTo
isReadable, isWriteable, readFrom, writeTo
getMarshaller, getSAXSource, getStoredJaxbContext, getUnmarshaller, isFormattedOutput, isXmlRootElementProcessing, setConfiguration, setHeader
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
@Inject public General(@Context javax.inject.Provider<SAXParserFactory> spf, @Context Providers ps, @Context Configuration config)
protected boolean isSupported(MediaType m)
AbstractJaxbProvider
Subclasses can override this method. Default implementation always returns true
.
isSupported
in class AbstractJaxbProvider<JAXBElement<?>>
m
- media type to be checked for support.true
if the media type is supported by the entity provider, false
otherwise.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.