@Provider @Produces(value="application/json") @Consumes(value="application/json") public class DataBindingJSONProvider<T> extends DataBindingProvider<T>
Constructor and Description |
---|
DataBindingJSONProvider() |
Modifier and Type | Method and Description |
---|---|
protected XMLStreamReader |
createReader(Class<?> type,
Type genericType,
InputStream is) |
protected XMLStreamWriter |
createWriter(Class<?> type,
Type genericType,
String enc,
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(XMLStreamWriter writer,
Object o) |
getSize, isWriteable, readFrom, setDataBinding, writeTo
public void setIgnoreNamespaces(boolean ignoreNamespaces)
public void setDropRootElement(boolean dropRootElement)
public void setWriteXsiType(boolean write)
public void setReadXsiType(boolean read)
public void setSerializeAsArray(boolean asArray)
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
isReadable
in class DataBindingProvider<T>
protected XMLStreamWriter createWriter(Class<?> type, Type genericType, String enc, OutputStream os) throws Exception
createWriter
in class DataBindingProvider<T>
Exception
protected void writeToWriter(XMLStreamWriter writer, Object o) throws Exception
writeToWriter
in class DataBindingProvider<T>
Exception
protected XMLStreamReader createReader(Class<?> type, Type genericType, InputStream is) throws Exception
createReader
in class DataBindingProvider<T>
Exception
public void setIgnoreMixedContent(boolean ignoreMixedContent)
Apache CXF