public abstract class XmlRootObjectJaxbProvider extends AbstractJaxbProvider<Object>
Modifier and Type | Class and Description |
---|---|
static class |
XmlRootObjectJaxbProvider.App
Provider for un-marshalling entities of
application/xml media type
into JAXB beans using JAXB unmarshaller . |
static class |
XmlRootObjectJaxbProvider.General
Provider for un-marshalling entities of
<type>/<sub-type>+xml media types
into JAXB beans using JAXB unmarshaller . |
static class |
XmlRootObjectJaxbProvider.Text
Provider for un-marshalling entities of
text/xml media type
into JAXB beans using JAXB unmarshaller . |
UTF8
Modifier and Type | Method and Description |
---|---|
protected JAXBContext |
getStoredJaxbContext(Class type)
Retrieve cached JAXB context capable of handling the given Java 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 inputStream) |
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
AbstractJaxbProvider
getStoredJaxbContext
in class AbstractJaxbProvider<Object>
type
- Java type .JAXBException
- in case the JAXB context retrieval fails.public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
public final Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream inputStream) 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 © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.