|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.jaxrs.provider.XMLBeansElementProvider
@Provider public class XMLBeansElementProvider
Provider for XMLBeans data objects.
| Constructor Summary | |
|---|---|
XMLBeansElementProvider()
|
|
| Method Summary | |
|---|---|
long |
getSize(org.apache.xmlbeans.XmlObject t)
|
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
|
protected boolean |
isXmlBean(java.lang.Class type)
Check if a Class is a valid XMLBeans data object. |
protected org.apache.xmlbeans.XmlObject |
parseXmlBean(java.lang.Class type,
java.io.InputStream inStream)
Create an XMLBean data object from an InputStream |
protected org.apache.xmlbeans.XmlObject |
parseXmlBean(java.lang.Class type,
java.io.Reader reader)
Create an XMLBean data object using a stream Reader |
protected org.apache.xmlbeans.XmlObject |
parseXmlBean(java.lang.Class type,
javax.xml.stream.XMLStreamReader reader)
Create an XMLBean object from an XML stream. |
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 t,
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 entityStream)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLBeansElementProvider()
| Method Detail |
|---|
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
readFrom in interface javax.ws.rs.ext.MessageBodyReader<org.apache.xmlbeans.XmlObject>java.io.IOException
public void writeTo(org.apache.xmlbeans.XmlObject t,
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 entityStream)
throws java.io.IOException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>java.io.IOExceptionpublic long getSize(org.apache.xmlbeans.XmlObject t)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>
public boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<org.apache.xmlbeans.XmlObject>
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.xmlbeans.XmlObject>
protected org.apache.xmlbeans.XmlObject parseXmlBean(java.lang.Class type,
javax.xml.stream.XMLStreamReader reader)
type - declared type of the target objectreader - stream reader for the XML stream
protected org.apache.xmlbeans.XmlObject parseXmlBean(java.lang.Class type,
java.io.InputStream inStream)
InputStream
type - declared type of the required objectinStream -
protected org.apache.xmlbeans.XmlObject parseXmlBean(java.lang.Class type,
java.io.Reader reader)
Reader
type - declared type of the desired XMLBean data objectreader -
protected boolean isXmlBean(java.lang.Class type)
Class is a valid XMLBeans data object. The check procedure involves looking
for the Interface XmlObject in the target type's declaration. Assumed to be sufficient
to identify the type as an XMLBean. From the javadoc (2.3.0) for XmlObject: "Corresponds to the XML
Schema xs:anyType, the base type for all XML Beans."
type -
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||