org.glassfish.jersey.message.internal
Class XmlRootObjectJaxbProvider
java.lang.Object
org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<T>
org.glassfish.jersey.message.internal.AbstractJaxbProvider<Object>
org.glassfish.jersey.message.internal.XmlRootObjectJaxbProvider
- All Implemented Interfaces:
- MessageBodyReader<Object>, MessageBodyWriter<Object>
- Direct Known Subclasses:
- XmlRootObjectJaxbProvider.App, XmlRootObjectJaxbProvider.General, XmlRootObjectJaxbProvider.Text
public abstract class XmlRootObjectJaxbProvider
- extends AbstractJaxbProvider<Object>
Base XML-based message body reader for JAXB beans.
- Author:
- Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)
|
Method Summary |
protected JAXBContext |
getStoredJaxbContext(Class type)
|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
boolean |
isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType mediaType)
|
Object |
readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream inputStream)
|
void |
writeTo(Object arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream arg6)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getStoredJaxbContext
protected JAXBContext getStoredJaxbContext(Class type)
throws JAXBException
- Overrides:
getStoredJaxbContext in class AbstractJaxbProvider<Object>
- Throws:
JAXBException
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
readFrom
public final Object readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream inputStream)
throws IOException
- Throws:
IOException
isWriteable
public boolean isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType mediaType)
writeTo
public void writeTo(Object arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream arg6)
throws IOException,
WebApplicationException
- Throws:
IOException
WebApplicationException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.