public class XMLRootObjectProvider extends AbstractJAXBProvider<Object>
Modifier and Type | Class and Description |
---|---|
static class |
XMLRootObjectProvider.App |
static class |
XMLRootObjectProvider.General |
static class |
XMLRootObjectProvider.Text |
UTF8
Modifier and Type | Method and Description |
---|---|
protected JAXBContext |
getStoredJAXBContext(Class type) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
javax.ws.rs.core.MediaType mediaType) |
Object |
readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(Object arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
javax.ws.rs.core.MediaType arg4,
javax.ws.rs.core.MultivaluedMap<String,Object> arg5,
OutputStream arg6) |
getMarshaller, getSAXSource, getUnmarshaller, isFormattedOutput, isSupported, isXmlRootElementProcessing, setConfiguration, setHeader
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
protected JAXBContext getStoredJAXBContext(Class type) throws JAXBException
getStoredJAXBContext
in class AbstractJAXBProvider<Object>
JAXBException
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
IOException
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType mediaType)
public void writeTo(Object arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String,Object> arg5, OutputStream arg6) throws IOException, javax.ws.rs.WebApplicationException
IOException
javax.ws.rs.WebApplicationException
Copyright © 2013 Oracle Corporation. All rights reserved.