Apache CXF API

org.apache.cxf.jaxrs.provider.xmlbeans
Class XMLBeansJSONProvider

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
      extended by org.apache.cxf.jaxrs.provider.xmlbeans.XMLBeansElementProvider
          extended by org.apache.cxf.jaxrs.provider.xmlbeans.XMLBeansJSONProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<org.apache.xmlbeans.XmlObject>, javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>

@Produces(value="application/json")
@Consumes(value="application/json")
@Provider
public class XMLBeansJSONProvider
extends XMLBeansElementProvider

JSON provider for XMLBeans data objects.


Constructor Summary
XMLBeansJSONProvider()
           
 
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.xmlbeans.XMLBeansElementProvider
getSize, isReadable, isWriteable, isXmlBean, parseXmlBean, parseXmlBean, parseXmlBean
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBeansJSONProvider

public XMLBeansJSONProvider()
Method Detail

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 API

Apache CXF