com.sun.jersey.core.provider.jaxb
Class AbstractJAXBProvider<T>
java.lang.Object
com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider<T>
com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider<T>
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
- Direct Known Subclasses:
- AbstractJAXBElementProvider, AbstractListElementProvider, AbstractRootElementProvider, XMLRootObjectProvider
public abstract class AbstractJAXBProvider<T>
- extends AbstractMessageReaderWriterProvider<T>
A base class for implementing JAXB-based readers and writers.
- Author:
- Paul.Sandoz@Sun.Com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ws.rs.ext.MessageBodyReader |
isReadable, readFrom |
Methods inherited from interface javax.ws.rs.ext.MessageBodyWriter |
isWriteable, writeTo |
AbstractJAXBProvider
public AbstractJAXBProvider(javax.ws.rs.ext.Providers ps)
AbstractJAXBProvider
public AbstractJAXBProvider(javax.ws.rs.ext.Providers ps,
javax.ws.rs.core.MediaType mt)
setConfiguration
@Context
public void setConfiguration(FeaturesAndProperties fp)
isSupported
protected boolean isSupported(javax.ws.rs.core.MediaType m)
getUnmarshaller
protected final javax.xml.bind.Unmarshaller getUnmarshaller(java.lang.Class type,
javax.ws.rs.core.MediaType mt)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
getMarshaller
protected final javax.xml.bind.Marshaller getMarshaller(java.lang.Class type,
javax.ws.rs.core.MediaType mt)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
getStoredJAXBContext
protected javax.xml.bind.JAXBContext getStoredJAXBContext(java.lang.Class type)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
getSAXSource
protected static javax.xml.transform.sax.SAXSource getSAXSource(javax.xml.parsers.SAXParserFactory spf,
java.io.InputStream entityStream)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
getFormattedOutput
protected boolean getFormattedOutput()
Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.