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,
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) |
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, MediaType mediaType)
public final Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream inputStream) throws IOException
IOException
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType mediaType)
public void writeTo(Object arg0, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4, MultivaluedMap<String,Object> arg5, OutputStream arg6) throws IOException, WebApplicationException
IOException
WebApplicationException
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.