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