org.apache.cxf.jaxrs.provider
Class XMLBeansJSONProvider
java.lang.Object
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(java.lang.Class<org.apache.xmlbeans.XmlObject> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
java.io.InputStream is)
|
void |
writeTo(org.apache.xmlbeans.XmlObject obj,
java.lang.Class<?> cls,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream os)
|
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(java.lang.Class<org.apache.xmlbeans.XmlObject> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
java.io.InputStream is)
throws java.io.IOException
-
- Specified by:
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<org.apache.xmlbeans.XmlObject>
- Overrides:
readFrom
in class XMLBeansElementProvider
- Throws:
java.io.IOException
writeTo
public void writeTo(org.apache.xmlbeans.XmlObject obj,
java.lang.Class<?> cls,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream os)
-
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>
- Overrides:
writeTo
in class XMLBeansElementProvider
Apache CXF