@Produces(value="application/json") @Consumes(value="application/json") @Provider public class XMLBeansJSONProvider extends XMLBeansElementProvider
BUNDLE, LOG
Constructor and Description |
---|
XMLBeansJSONProvider() |
Modifier and Type | Method and Description |
---|---|
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) |
getSize, isReadable, isWriteable, isXmlBean, parseXmlBean, parseXmlBean, parseXmlBean
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
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
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<org.apache.xmlbeans.XmlObject>
readFrom
in class XMLBeansElementProvider
IOException
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)
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>
writeTo
in class XMLBeansElementProvider
Apache CXF