|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.aegis.type.encoded.TrailingBlocks
public class TrailingBlocks
TrailingBlocks reads and writes the extra objects referenced but not written in the main message parts. These objects are commonly refered to as serialization (SOAP spec) roots and trailing blocks (JaxRpc spec). This class uses ObjectType to perform the actual reading and writting, so each block will (and must) contain an xsi type element.
Typically, all message parts are read or written using the SoapRefType and before closing the SOAP body element the trailing blocks are read or written using this class.
Constructor Summary | |
---|---|
TrailingBlocks()
|
|
TrailingBlocks(ObjectType objectType)
|
|
TrailingBlocks(TypeMapping typeMapping)
|
Method Summary | |
---|---|
ObjectType |
getObjectType()
Gets the ObjectType used to read and write the trailing block instances. |
List<Object> |
readBlocks(MessageReader reader,
Context context)
Reads all remailing elements in the reader and registers them with the SoapRefRegistry in the context. |
void |
setObjectType(ObjectType objectType)
Sets the ObjectType used to read and write the trailing block instances. |
List<Object> |
writeBlocks(MessageWriter writer,
Context context)
Writes all of the unmarshalled objects in the MarshalRegistry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrailingBlocks()
public TrailingBlocks(TypeMapping typeMapping)
public TrailingBlocks(ObjectType objectType)
Method Detail |
---|
public ObjectType getObjectType()
public void setObjectType(ObjectType objectType)
objectType
- the ObjectType used to read and write the trailing block instances.public List<Object> readBlocks(MessageReader reader, Context context) throws DatabindingException
reader
- the stream to readcontext
- the unmarshal context
DatabindingException
- if a trailing block element does not contain a soap id attributepublic List<Object> writeBlocks(MessageWriter writer, Context context)
writer
- the stream to write the objectscontext
- the marshal context
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |