|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the source. Each data binding defines the set of source types that it supports.public interface DataReader<T>
The 'read' side of the data binding abstraction of CXF. A DataReader<T> reads objects from a source of type T.
Field Summary | |
---|---|
static String |
ENDPOINT
|
static String |
FAULT
|
Method Summary | |
---|---|
Object |
read(MessagePartInfo part,
T input)
Read an object from the input, applying additional conventions based on the WSDL message part. |
Object |
read(QName elementQName,
T input,
Class<?> type)
Read an object from the input. |
Object |
read(T input)
Read an object from the input. |
void |
setAttachments(Collection<Attachment> attachments)
Attach a collection of attachments to a binding. |
void |
setProperty(String prop,
Object value)
Set an arbitrary property on the reader. |
void |
setSchema(Schema s)
Supply a schema to validate the input. |
Field Detail |
---|
static final String FAULT
static final String ENDPOINT
Method Detail |
---|
void setSchema(Schema s)
s
- void setAttachments(Collection<Attachment> attachments)
attachments
- attachments.void setProperty(String prop, Object value)
FAULT
and ENDPOINT
specify two common properties: the Fault object being read
and the Endpoint
.
prop
- Name of the property.value
- Value of the property.Object read(T input)
input
- input source object.
Object read(MessagePartInfo part, T input)
part
- The message part for this item. If null, this API is equivalent to
read(Object)
.input
- input source object.
Object read(QName elementQName, T input, Class<?> type)
elementQName
- expected element. Generally ignored.input
- input source object.type
- the type of object required/requested. This is generally used
when the caller wants to receive a raw source object and avoid any binding processing.
For example, passing javax.xml.transform.Source. The bindings do not necessarily throw
if they cannot provide an object of the requested type, and will apply their normal
mapping processing, instead.
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |