Apache CXF API

org.apache.cxf.jaxrs.provider.aegis
Class AegisJSONProvider<T>

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

@Provider
public final class AegisJSONProvider<T>
extends AegisElementProvider<T>


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.provider.aegis.AbstractAegisProvider
readXsiType, resolver, writeXsiType
 
Constructor Summary
AegisJSONProvider()
           
 
Method Summary
protected  javax.xml.stream.XMLStreamReader createStreamReader(AegisType typeToRead, InputStream is)
           
protected  javax.xml.stream.XMLStreamWriter createStreamWriter(QName typeQName, OutputStream os)
           
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
           
 void setArrayKeys(List<String> keys)
           
 void setDropRootElement(boolean dropRootElement)
           
 void setIgnoreNamespaces(boolean ignoreNamespaces)
           
 void setNamespaceMap(Map<String,String> nsMap)
           
 void setSerializeAsArray(boolean asArray)
           
 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.aegis.AegisElementProvider
readFrom
 
Methods inherited from class org.apache.cxf.jaxrs.provider.aegis.AbstractAegisProvider
getAegisContext, getSize, isSupported, isWriteable, setReadXsiType, setWriteXsiType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AegisJSONProvider

public AegisJSONProvider()
Method Detail

setIgnoreNamespaces

public void setIgnoreNamespaces(boolean ignoreNamespaces)

setDropRootElement

public void setDropRootElement(boolean dropRootElement)

setArrayKeys

public void setArrayKeys(List<String> keys)

setSerializeAsArray

public void setSerializeAsArray(boolean asArray)

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          javax.ws.rs.core.MediaType mt)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>
Overrides:
isReadable in class AbstractAegisProvider<T>

setNamespaceMap

public void setNamespaceMap(Map<String,String> nsMap)

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
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<T>
Overrides:
writeTo in class AegisElementProvider<T>
Throws:
IOException

createStreamWriter

protected javax.xml.stream.XMLStreamWriter createStreamWriter(QName typeQName,
                                                              OutputStream os)
                                                       throws Exception
Overrides:
createStreamWriter in class AegisElementProvider<T>
Throws:
Exception

createStreamReader

protected javax.xml.stream.XMLStreamReader createStreamReader(AegisType typeToRead,
                                                              InputStream is)
                                                       throws Exception
Overrides:
createStreamReader in class AegisElementProvider<T>
Throws:
Exception

Apache CXF API

Apache CXF