Apache CXF API

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

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

@Provider
public class DataBindingJSONProvider<T>
extends DataBindingProvider<T>


Constructor Summary
DataBindingJSONProvider()
           
 
Method Summary
protected  javax.xml.stream.XMLStreamReader createReader(Class<?> type, Type genericType, InputStream is)
           
protected  javax.xml.stream.XMLStreamWriter createWriter(Class<?> type, Type genericType, 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 setIgnoreMixedContent(boolean ignoreMixedContent)
           
 void setIgnoreNamespaces(boolean ignoreNamespaces)
           
 void setNamespaceMap(Map<String,String> nsMap)
           
 void setReadXsiType(boolean read)
           
 void setSerializeAsArray(boolean asArray)
           
 void setWriteXsiType(boolean write)
           
protected  void writeToWriter(javax.xml.stream.XMLStreamWriter writer, Object o)
           
 
Methods inherited from class org.apache.cxf.jaxrs.provider.DataBindingProvider
getSize, isWriteable, readFrom, setDataBinding, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBindingJSONProvider

public DataBindingJSONProvider()
Method Detail

setIgnoreNamespaces

public void setIgnoreNamespaces(boolean ignoreNamespaces)

setDropRootElement

public void setDropRootElement(boolean dropRootElement)

setWriteXsiType

public void setWriteXsiType(boolean write)

setReadXsiType

public void setReadXsiType(boolean read)

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 DataBindingProvider<T>

setNamespaceMap

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

createWriter

protected javax.xml.stream.XMLStreamWriter createWriter(Class<?> type,
                                                        Type genericType,
                                                        OutputStream os)
                                                 throws Exception
Overrides:
createWriter in class DataBindingProvider<T>
Throws:
Exception

writeToWriter

protected void writeToWriter(javax.xml.stream.XMLStreamWriter writer,
                             Object o)
                      throws Exception
Overrides:
writeToWriter in class DataBindingProvider<T>
Throws:
Exception

createReader

protected javax.xml.stream.XMLStreamReader createReader(Class<?> type,
                                                        Type genericType,
                                                        InputStream is)
                                                 throws Exception
Overrides:
createReader in class DataBindingProvider<T>
Throws:
Exception

setIgnoreMixedContent

public void setIgnoreMixedContent(boolean ignoreMixedContent)

Apache CXF API

Apache CXF