T - public class JSONConfigBasedReader<T> extends Object implements javax.ws.rs.ext.MessageBodyReader<T>
Transformer to read the message body String and convert it into an Obeject| Constructor and Description |
|---|
JSONConfigBasedReader() |
JSONConfigBasedReader(net.sf.json.JsonConfig jsonConfig) |
| Modifier and Type | Method and Description |
|---|---|
net.sf.json.JsonConfig |
getFilterJsonConfig()
Optional: Used when creating the
JSONObject from raw JSON String. |
net.sf.json.JsonConfig |
getJsonConfig()
JsonConfig used to convert JSONObject to the final Bean |
Class |
getType()
The type.
|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isStrictTypeChecking()
If true, will ensure
type is exactly same as the Type CXF looks for |
T |
readFrom(Class<T> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
setFilterJsonConfig(net.sf.json.JsonConfig filterJsonConfig)
Optional: Used when creating the
JSONObject from raw JSON String. |
void |
setJsonConfig(net.sf.json.JsonConfig jsonConfig)
JsonConfig used to convert JSONObject to the final Bean |
void |
setStrictTypeChecking(boolean strictTypeChecking)
If true, will ensure
type is exactly same as the Type CXF looks for |
void |
setType(Class type)
The type.
|
public JSONConfigBasedReader()
public JSONConfigBasedReader(net.sf.json.JsonConfig jsonConfig)
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>public T readFrom(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<T>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic net.sf.json.JsonConfig getJsonConfig()
JsonConfig used to convert JSONObject to the final BeanJsonConfigpublic void setJsonConfig(net.sf.json.JsonConfig jsonConfig)
JsonConfig used to convert JSONObject to the final BeanJsonConfigpublic net.sf.json.JsonConfig getFilterJsonConfig()
JSONObject from raw JSON String.public void setFilterJsonConfig(net.sf.json.JsonConfig filterJsonConfig)
JSONObject from raw JSON String.public Class getType()
type
for this reader isReadable(Class, Type, Annotation[], MediaType)strictTypeCheckingpublic void setType(Class type)
type
for this reader isReadable(Class, Type, Annotation[], MediaType)strictTypeCheckingpublic boolean isStrictTypeChecking()
type is exactly same as the Type CXF looks fortypeCopyright © 2018. All rights reserved.