T
- public class TransformerReader<T> extends Object implements javax.ws.rs.ext.MessageBodyReader<T>
Transformer
to read the message body String and convert it into an ObejectConstructor and Description |
---|
TransformerReader() |
TransformerReader(org.apache.commons.collections.Transformer transformer) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.collections.Transformer |
getTransformer()
Takes in a message body as String
|
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 |
setStrictTypeChecking(boolean strictTypeChecking)
If true, will ensure
type is exactly same as the Type CXF looks for |
void |
setTransformer(org.apache.commons.collections.Transformer transformer)
Takes in a message body as String
|
void |
setType(Class type)
The type.
|
public TransformerReader()
public TransformerReader(org.apache.commons.collections.Transformer transformer)
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>
IOException
javax.ws.rs.WebApplicationException
public org.apache.commons.collections.Transformer getTransformer()
public void setTransformer(org.apache.commons.collections.Transformer transformer)
public Class getType()
type
for this reader isReadable(Class, Type, Annotation[], MediaType)
strictTypeChecking
public void setType(Class type)
type
for this reader isReadable(Class, Type, Annotation[], MediaType)
strictTypeChecking
public boolean isStrictTypeChecking()
type
is exactly same as the Type CXF looks fortype
Copyright © 2018. All rights reserved.