|
||||||||||
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.DataSourceBlockImpl
public class DataSourceBlockImpl
SourceBlock
Block containing a business object that is a javax.activation.DataSource
Field Summary |
---|
Fields inherited from class org.apache.axis2.jaxws.message.impl.BlockImpl |
---|
busContext, busObject, consumed, factory, omElement, parent, qName |
Fields inherited from interface org.apache.axiom.om.OMDataSourceExt |
---|
LOSSY_PREFIX |
Constructor Summary | |
---|---|
DataSourceBlockImpl(org.apache.axiom.om.OMElement omElement,
QName qName,
BlockFactory factory)
Constructor called from factory |
Method Summary | |
---|---|
protected Object |
_getBOFromBO(Object busObject,
Object busContext,
boolean consume)
The default implementation is to return the business object. |
protected Object |
_getBOFromOM(org.apache.axiom.om.OMElement omElement,
Object busContext)
Default method for getting business object from OM. |
protected Object |
_getBOFromReader(XMLStreamReader reader,
Object busContext)
The derived class must provide an implementation that builds the business object from the reader |
protected XMLStreamReader |
_getReaderFromBO(Object busObj,
Object busContext)
Get an XMLStreamReader for the BusinessObject The derived Block must implement this method |
protected void |
_outputFromBO(Object busObject,
Object busContext,
XMLStreamWriter writer)
Output BusinessObject contents to a Writer. |
void |
close()
|
Object |
getObject()
|
org.apache.axiom.om.OMElement |
getOMElement()
Get the OMElement represented by this Block. |
byte[] |
getXMLBytes(String encoding)
|
InputStream |
getXMLInputStream(String encoding)
|
boolean |
isDestructiveRead()
|
boolean |
isDestructiveWrite()
|
boolean |
isElementData()
|
void |
serialize(OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
|
Methods inherited from class org.apache.axis2.jaxws.message.impl.BlockImpl |
---|
_getOMFromBO, _getReaderFromOM, _outputFromOM, _outputFromReader, _postPivot_getXMLStreamReader, _postPivot_outputTo, copy, getBlockFactory, getBusinessContext, getBusinessObject, getParent, getProperty, getQName, getReader, getXMLStreamReader, hasProperty, isBusinessObject, isConsumed, isQNameAvailable, outputTo, serialize, serialize, setConsumed, setParent, setProperty, 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, getBusinessObject, getParent, getQName, getXMLStreamReader, isConsumed, isQNameAvailable, outputTo, setParent, traceString |
Methods inherited from interface org.apache.axiom.om.OMDataSourceExt |
---|
copy, getProperty, getReader, hasProperty, serialize, serialize, setProperty |
Constructor Detail |
---|
public DataSourceBlockImpl(org.apache.axiom.om.OMElement omElement, QName qName, BlockFactory factory)
reader
- qName
- factory
- Method Detail |
---|
protected Object _getBOFromReader(XMLStreamReader reader, Object busContext) throws XMLStreamException, WebServiceException
BlockImpl
_getBOFromReader
in class BlockImpl
reader
- XMLStreamReader, which is consumed
XMLStreamException
WebServiceException
public org.apache.axiom.om.OMElement getOMElement() throws XMLStreamException, WebServiceException
Block
getOMElement
in interface Block
getOMElement
in class BlockImpl
XMLStreamException
WebServiceException
protected Object _getBOFromOM(org.apache.axiom.om.OMElement omElement, Object busContext) throws XMLStreamException, WebServiceException
BlockImpl
_getBOFromOM
in class BlockImpl
XMLStreamException
WebServiceException
protected XMLStreamReader _getReaderFromBO(Object busObj, Object busContext) throws XMLStreamException, WebServiceException
BlockImpl
_getReaderFromBO
in class BlockImpl
XMLStreamException
WebServiceException
public void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException
serialize
in interface org.apache.axiom.om.OMDataSource
serialize
in interface org.apache.axiom.om.OMDataSourceExt
serialize
in class BlockImpl
XMLStreamException
protected void _outputFromBO(Object busObject, Object busContext, XMLStreamWriter writer) throws XMLStreamException, WebServiceException
BlockImpl
_outputFromBO
in class BlockImpl
XMLStreamException
WebServiceException
protected Object _getBOFromBO(Object busObject, Object busContext, boolean consume)
BlockImpl
_getBOFromBO
in class BlockImpl
public boolean isElementData()
isElementData
in interface Block
public void close()
close
in interface org.apache.axiom.om.OMDataSourceExt
public InputStream getXMLInputStream(String encoding) throws UnsupportedEncodingException
getXMLInputStream
in interface org.apache.axiom.om.OMDataSourceExt
UnsupportedEncodingException
public Object getObject()
getObject
in interface org.apache.axiom.om.OMDataSourceExt
public boolean isDestructiveRead()
isDestructiveRead
in interface org.apache.axiom.om.OMDataSourceExt
public boolean isDestructiveWrite()
isDestructiveWrite
in interface org.apache.axiom.om.OMDataSourceExt
public byte[] getXMLBytes(String encoding) throws UnsupportedEncodingException
getXMLBytes
in interface org.apache.axiom.om.OMDataSourceExt
UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |