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 jakarta.xml.bind.JAXBContext |
getStoredJaxbContext(Class type)
Retrieve cached JAXB context capable of handling the given Java type.
|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
jakarta.ws.rs.core.MediaType mediaType) |
Object |
readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType,
jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream inputStream) |
void |
writeTo(Object arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
jakarta.ws.rs.core.MediaType arg4,
jakarta.ws.rs.core.MultivaluedMap<String,Object> arg5,
OutputStream arg6) |
getMarshaller, getSAXSource, getUnmarshaller, isFormattedOutput, isSupported, isXmlRootElementProcessing, setConfiguration, setHeader
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
protected jakarta.xml.bind.JAXBContext getStoredJaxbContext(Class type) throws jakarta.xml.bind.JAXBException
AbstractJaxbProvider
getStoredJaxbContext
in class AbstractJaxbProvider<Object>
type
- Java type .jakarta.xml.bind.JAXBException
- in case the JAXB context retrieval fails.public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
public final Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream inputStream) throws IOException
IOException
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, jakarta.ws.rs.core.MediaType mediaType)
public void writeTo(Object arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4, jakarta.ws.rs.core.MultivaluedMap<String,Object> arg5, OutputStream arg6) throws IOException, jakarta.ws.rs.WebApplicationException
IOException
jakarta.ws.rs.WebApplicationException
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.