Apache CXF API

org.apache.cxf.jaxrs.provider
Class AegisElementProvider<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.AbstractAegisProvider<T>
      extended by org.apache.cxf.jaxrs.provider.AegisElementProvider<T>
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
Direct Known Subclasses:
AegisJSONProvider

@Provider
public class AegisElementProvider<T>
extends AbstractAegisProvider<T>


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.provider.AbstractAegisProvider
readXsiType, resolver, writeXsiType
 
Constructor Summary
AegisElementProvider()
           
 
Method Summary
protected  javax.xml.stream.XMLStreamReader createStreamReader(AegisType topType, InputStream is)
           
protected  javax.xml.stream.XMLStreamWriter createStreamWriter(QName typeQName, OutputStream os)
           
 T readFrom(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType m, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is)
           
 void writeTo(T obj, Class<?> type, Type genericType, Annotation[] anns, 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.AbstractAegisProvider
getAegisContext, getSize, isReadable, isSupported, isWriteable, setReadXsiType, setWriteXsiType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AegisElementProvider

public AegisElementProvider()
Method Detail

readFrom

public T readFrom(Class<T> type,
                  Type genericType,
                  Annotation[] annotations,
                  javax.ws.rs.core.MediaType m,
                  javax.ws.rs.core.MultivaluedMap<String,String> headers,
                  InputStream is)
           throws IOException
Throws:
IOException

createStreamReader

protected javax.xml.stream.XMLStreamReader createStreamReader(AegisType topType,
                                                              InputStream is)
                                                       throws Exception
Throws:
Exception

writeTo

public void writeTo(T obj,
                    Class<?> type,
                    Type genericType,
                    Annotation[] anns,
                    javax.ws.rs.core.MediaType m,
                    javax.ws.rs.core.MultivaluedMap<String,Object> headers,
                    OutputStream os)
             throws IOException
Throws:
IOException

createStreamWriter

protected javax.xml.stream.XMLStreamWriter createStreamWriter(QName typeQName,
                                                              OutputStream os)
                                                       throws Exception
Throws:
Exception

Apache CXF API

Apache CXF