org.apache.cxf.jaxrs.provider
Class XMLBeansJSONProvider
java.lang.Object
org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
org.apache.cxf.jaxrs.provider.XMLBeansElementProvider
org.apache.cxf.jaxrs.provider.XMLBeansJSONProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<org.apache.xmlbeans.XmlObject>, javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>
@Provider
public class XMLBeansJSONProvider
- extends XMLBeansElementProvider
JSON provider for XMLBeans data objects.
Method Summary |
org.apache.xmlbeans.XmlObject |
readFrom(Class<org.apache.xmlbeans.XmlObject> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
|
void |
writeTo(org.apache.xmlbeans.XmlObject obj,
Class<?> cls,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
|
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider |
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLBeansJSONProvider
public XMLBeansJSONProvider()
readFrom
public org.apache.xmlbeans.XmlObject readFrom(Class<org.apache.xmlbeans.XmlObject> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
throws IOException
-
- Specified by:
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<org.apache.xmlbeans.XmlObject>
- Overrides:
readFrom
in class XMLBeansElementProvider
- Throws:
IOException
writeTo
public void writeTo(org.apache.xmlbeans.XmlObject obj,
Class<?> cls,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
-
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>
- Overrides:
writeTo
in class XMLBeansElementProvider
Apache CXF