|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.jaxws.message.impl.BlockImpl
org.apache.axis2.jaxws.message.databinding.impl.SourceBlockImpl
public class SourceBlockImpl
SourceBlock
Block containing a business object that is a javax.xml.transform.Source. The javax.xml.transform.Source is an interface. The actual concrete class may be one of the following: - StreamSource - DOMSource - JAXBSource - SAXSource - StAXSource During processing of the block, the block is free to change the representation from one source to another. (i.e. if you initially seed this with a SAXSource, but a later access may give you a StAXSource). A Source is consumed when read. The block will make a copy of the source if a non-consumable request is made.
Field Summary |
---|
Fields inherited from class org.apache.axis2.jaxws.message.impl.BlockImpl |
---|
busContext, busObject, consumed, factory, omElement, parent, qName |
Constructor Summary | |
---|---|
SourceBlockImpl(org.apache.axiom.om.OMElement omElement,
QName qName,
BlockFactory factory)
Constructor called from factory |
Method Summary | |
---|---|
protected java.lang.Object |
_getBOFromBO(java.lang.Object busObject,
java.lang.Object busContext,
boolean consume)
The default implementation is to return the business object. |
protected java.lang.Object |
_getBOFromReader(javax.xml.stream.XMLStreamReader reader,
java.lang.Object busContext)
The derived class must provide an implementation that builds the business object from the reader |
protected javax.xml.stream.XMLStreamReader |
_getReaderFromBO(java.lang.Object busObj,
java.lang.Object busContext)
Get an XMLStreamReader for the BusinessObject The derived Block must implement this method |
protected void |
_outputFromBO(java.lang.Object busObject,
java.lang.Object busContext,
javax.xml.stream.XMLStreamWriter writer)
Output BusinessObject contents to a Writer. |
java.lang.Object |
getBusinessObject(boolean consume)
Get a reference to the Business Object represented by this Block |
boolean |
isElementData()
|
Methods inherited from class org.apache.axis2.jaxws.message.impl.BlockImpl |
---|
_outputFromReader, _postPivot_getXMLStreamReader, _postPivot_outputTo, getBlockFactory, getBusinessContext, getOMElement, getParent, getQName, getReader, getXMLStreamReader, isBusinessObject, isConsumed, isQNameAvailable, outputTo, serialize, serialize, serialize, setConsumed, setParent, setQName, traceString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.axis2.jaxws.message.Block |
---|
getBlockFactory, getBusinessContext, getOMElement, getParent, getQName, getXMLStreamReader, isConsumed, isQNameAvailable, outputTo, setParent, traceString |
Methods inherited from interface org.apache.axiom.om.OMDataSource |
---|
getReader, serialize, serialize, serialize |
Constructor Detail |
---|
public SourceBlockImpl(org.apache.axiom.om.OMElement omElement, QName qName, BlockFactory factory)
reader
- qName
- factory
- Method Detail |
---|
protected java.lang.Object _getBOFromReader(javax.xml.stream.XMLStreamReader reader, java.lang.Object busContext) throws javax.xml.stream.XMLStreamException
BlockImpl
_getBOFromReader
in class BlockImpl
reader
- XMLStreamReader, which is consumed
javax.xml.stream.XMLStreamException
protected javax.xml.stream.XMLStreamReader _getReaderFromBO(java.lang.Object busObj, java.lang.Object busContext) throws javax.xml.stream.XMLStreamException, WebServiceException
BlockImpl
_getReaderFromBO
in class BlockImpl
javax.xml.stream.XMLStreamException
WebServiceException
protected void _outputFromBO(java.lang.Object busObject, java.lang.Object busContext, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException, WebServiceException
BlockImpl
_outputFromBO
in class BlockImpl
javax.xml.stream.XMLStreamException
WebServiceException
protected java.lang.Object _getBOFromBO(java.lang.Object busObject, java.lang.Object busContext, boolean consume)
BlockImpl
_getBOFromBO
in class BlockImpl
public boolean isElementData()
isElementData
in interface Block
public java.lang.Object getBusinessObject(boolean consume) throws javax.xml.stream.XMLStreamException, WebServiceException
Block
getBusinessObject
in interface Block
getBusinessObject
in class BlockImpl
consume
- true if this is the last request on the block.
javax.xml.stream.XMLStreamException
WebServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |