|
||||||||||
| 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.JAXBBlockImpl
public class JAXBBlockImpl
JAXBBlockImpl
A Block containing a JAXB business object (either a JAXBElement or an object with @XmlRootElement).
| 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 |
| Method Summary | |
|---|---|
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 XMLStreamReader |
_getReaderFromOM(org.apache.axiom.om.OMElement omElement)
|
protected void |
_outputFromBO(Object busObject,
Object busContext,
XMLStreamWriter writer)
Output BusinessObject contents to a Writer. |
void |
close()
|
org.apache.axiom.om.OMDataSourceExt |
copy()
|
Object |
getObject()
|
byte[] |
getXMLBytes(String encoding)
|
InputStream |
getXMLInputStream(String encoding)
|
boolean |
isDestructiveRead()
|
boolean |
isDestructiveWrite()
|
boolean |
isElementData()
|
void |
setParent(Message message)
Set the Message associated with this block (This method is intended to be called by the Message Implementation only) |
| Methods inherited from class org.apache.axis2.jaxws.message.impl.BlockImpl |
|---|
_getBOFromBO, _getOMFromBO, _outputFromOM, _outputFromReader, _postPivot_getXMLStreamReader, _postPivot_outputTo, getBlockFactory, getBusinessContext, getBusinessObject, getOMElement, getParent, getProperty, getQName, getReader, getXMLStreamReader, hasProperty, isBusinessObject, isConsumed, isQNameAvailable, outputTo, serialize, serialize, serialize, setConsumed, 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, getOMElement, getParent, getQName, getXMLStreamReader, isConsumed, isQNameAvailable, outputTo, traceString |
| Methods inherited from interface org.apache.axiom.om.OMDataSourceExt |
|---|
getProperty, getReader, hasProperty, serialize, serialize, serialize, setProperty |
| Method Detail |
|---|
protected Object _getBOFromReader(XMLStreamReader reader,
Object busContext)
throws XMLStreamException,
WebServiceException
BlockImpl
_getBOFromReader in class BlockImplreader - XMLStreamReader, which is consumed
XMLStreamException
WebServiceException
protected Object _getBOFromOM(org.apache.axiom.om.OMElement omElement,
Object busContext)
throws XMLStreamException,
WebServiceException
BlockImpl
_getBOFromOM in class BlockImplXMLStreamException
WebServiceException
protected XMLStreamReader _getReaderFromBO(Object busObj,
Object busContext)
throws XMLStreamException,
WebServiceException
BlockImpl
_getReaderFromBO in class BlockImplXMLStreamException
WebServiceExceptionprotected XMLStreamReader _getReaderFromOM(org.apache.axiom.om.OMElement omElement)
_getReaderFromOM in class BlockImpl
protected void _outputFromBO(Object busObject,
Object busContext,
XMLStreamWriter writer)
throws XMLStreamException,
WebServiceException
BlockImpl
_outputFromBO in class BlockImplXMLStreamException
WebServiceExceptionpublic boolean isElementData()
isElementData in interface Blockpublic void close()
close in interface org.apache.axiom.om.OMDataSourceExt
public InputStream getXMLInputStream(String encoding)
throws UnsupportedEncodingException
getXMLInputStream in interface org.apache.axiom.om.OMDataSourceExtUnsupportedEncodingExceptionpublic Object getObject()
getObject in interface org.apache.axiom.om.OMDataSourceExtpublic boolean isDestructiveRead()
isDestructiveRead in interface org.apache.axiom.om.OMDataSourceExtpublic boolean isDestructiveWrite()
isDestructiveWrite in interface org.apache.axiom.om.OMDataSourceExt
public org.apache.axiom.om.OMDataSourceExt copy()
throws org.apache.axiom.om.OMException
copy in interface org.apache.axiom.om.OMDataSourceExtcopy in class BlockImplorg.apache.axiom.om.OMException
public byte[] getXMLBytes(String encoding)
throws UnsupportedEncodingException
getXMLBytes in interface org.apache.axiom.om.OMDataSourceExtUnsupportedEncodingExceptionpublic void setParent(Message message)
Block
setParent in interface BlocksetParent in class BlockImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||