public abstract class XMLPartBase extends Object implements XMLPart
XMLPart,
XMLPartImpl| Modifier and Type | Method and Description |
|---|---|
protected abstract javax.xml.soap.SOAPEnvelope |
_convertOM2SE(org.apache.axiom.om.OMElement om)
Convert OM tree into a SOAPEnvelope
|
protected abstract org.apache.axis2.jaxws.message.impl.XMLSpine |
_convertOM2Spine(org.apache.axiom.om.OMElement om)
Convert OM into XMLSpine
|
protected abstract org.apache.axiom.om.OMElement |
_convertSE2OM(javax.xml.soap.SOAPEnvelope se)
Convert SOAPEnvelope into an OM tree
|
protected abstract org.apache.axis2.jaxws.message.impl.XMLSpine |
_convertSE2Spine(javax.xml.soap.SOAPEnvelope se)
Convert SOAPEnvelope into XMLSPine
|
protected abstract org.apache.axiom.om.OMElement |
_convertSpine2OM(org.apache.axis2.jaxws.message.impl.XMLSpine spine)
Convert XMLSpine into an OM tree
|
protected abstract javax.xml.soap.SOAPEnvelope |
_convertSpine2SE(org.apache.axis2.jaxws.message.impl.XMLSpine spine)
Convert XMLSpine into a SOAPEnvelope
|
protected static org.apache.axis2.jaxws.message.impl.XMLSpine |
_createSpine(Protocol protocol,
javax.jws.soap.SOAPBinding.Style style,
int indirection,
org.apache.axiom.om.OMElement payload)
Create an empty, default spine for the specificed protocol
|
void |
appendHeaderBlock(String namespace,
String localPart,
Block block)
appendHeaderBlock
Append the block to the list of header blocks.
|
void |
close()
Used primarily to ensure the parser is forwarded to the end so it can be closed.
|
org.apache.axiom.om.OMElement |
getAsOMElement()
getAsOMElement Get the xml part as a read/write OM...note this returns an OM SOAPEnvelope for
all protocols...even REST
|
javax.xml.soap.SOAPEnvelope |
getAsSOAPEnvelope()
getAsEnvelope Get the xml part as a read/write SOAPEnvelope
|
Block |
getBodyBlock(int index,
Object context,
BlockFactory blockFactory)
getBodyBlock Get the body block at the specificed index.
|
Block |
getBodyBlock(Object context,
BlockFactory blockFactory)
getBodyBlock Get the single Body Block.
|
List<QName> |
getBodyBlockQNames()
getBodyBlockQNames
Calling this method will cache the OM.
|
Block |
getHeaderBlock(String namespace,
String localPart,
Object context,
BlockFactory blockFactory)
getHeaderBlock
Get the firstheader block with the specified name.
|
List<Block> |
getHeaderBlocks(String namespace,
String localPart,
Object context,
BlockFactory blockFactory,
org.apache.axiom.soap.RolePlayer rolePlayer)
getHeaderBlock
Get the header blocks with the specified name
The BlockFactory and object context
are passed in to help create the proper kind of block.
|
Set<QName> |
getHeaderQNames() |
int |
getIndirection()
Get indirection.
|
int |
getNumBodyBlocks()
getNumBodyBlocks Calling this method will cache the OM.
|
int |
getNumHeaderBlocks()
getNumHeaderBlocks
|
QName |
getOperationElement() |
Message |
getParent()
getParent Get the Message object that this XMLPart is attached to, if it is attached to one
at all.
|
Protocol |
getProtocol()
Get the protocol for this Message (soap11, soap12, etc.)
|
javax.jws.soap.SOAPBinding.Style |
getStyle() |
XMLFault |
getXMLFault()
If the XMLPart represents a fault, an XMLFault is returned which describes the fault in a
protocol agnostic manner
|
String |
getXMLPartContentType()
The representation of the XMLPart may be in a number of different forms.
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReader(boolean consume)
Get the XMLStreamReader represented by this Message for the xml part
|
boolean |
isConsumed()
isConsumed Return true if the part is consumed.
|
boolean |
isFault()
Determines whether the XMLPart represents a Fault
|
void |
outputTo(javax.xml.stream.XMLStreamWriter writer,
boolean consume)
Write out the Message
|
void |
removeBodyBlock(int index)
removeBodyBlock Removes the indicated BodyBlock
|
void |
removeHeaderBlock(String namespace,
String localPart)
removeHeaderBlock
Removes all header blocks with this namespace/localpart
|
void |
setBodyBlock(Block block)
setBodyBlock Set this as block as the single block for the message.
|
void |
setBodyBlock(int index,
Block block)
setBodyBlock Set the block at the specified index Once set, the Message owns the block.
|
void |
setHeaderBlock(String namespace,
String localPart,
Block block)
setHeaderBlock
replaces the first existing header block with this new block.
|
void |
setIndirection(int indirection)
Set indirection.
|
void |
setOperationElement(QName operationQName)
Set the operation element qname.
|
void |
setParent(Message p)
setParent Set the Message object that will hold this XMLPart
|
void |
setStyle(javax.jws.soap.SOAPBinding.Style style)
Set the Style.
|
void |
setXMLFault(XMLFault xmlFault)
Change the XMLPart so that it represents the fault described by XMLFault
|
String |
traceString(String indent)
Get a traceString...the trace string dumps the contents of the Block without forcing an
underlying ill-performant transformation of the message.
|
public org.apache.axiom.om.OMElement getAsOMElement()
throws javax.xml.ws.WebServiceException
XMLPartgetAsOMElement in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic javax.xml.soap.SOAPEnvelope getAsSOAPEnvelope() throws javax.xml.ws.WebServiceException
XMLPartgetAsSOAPEnvelope in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic Protocol getProtocol()
XMLPartgetProtocol in interface XMLPartpublic javax.jws.soap.SOAPBinding.Style getStyle()
public int getIndirection()
XMLPartgetIndirection in interface XMLPartpublic void setStyle(javax.jws.soap.SOAPBinding.Style style)
throws javax.xml.ws.WebServiceException
XMLPartsetStyle in interface XMLPartstyle - Stylejavax.xml.ws.WebServiceExceptionindirectionpublic void setIndirection(int indirection)
XMLPartsetIndirection in interface XMLPartindirection - (0 or 1)public QName getOperationElement() throws javax.xml.ws.WebServiceException
getOperationElement in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic void setOperationElement(QName operationQName) throws javax.xml.ws.WebServiceException
XMLPartsetOperationElement in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic String getXMLPartContentType()
XMLPartgetXMLPartContentType in interface XMLPartpublic javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean consume) throws javax.xml.ws.WebServiceException
XMLPartgetXMLStreamReader in interface XMLPartconsume - true if this is the last request on the Messagejavax.xml.ws.WebServiceExceptionpublic XMLFault getXMLFault() throws javax.xml.ws.WebServiceException
XMLPartgetXMLFault in interface XMLPartjavax.xml.ws.WebServiceExceptionXMLFaultpublic void setXMLFault(XMLFault xmlFault) throws javax.xml.ws.WebServiceException
XMLPartsetXMLFault in interface XMLPartjavax.xml.ws.WebServiceExceptionXMLFaultpublic boolean isFault()
throws javax.xml.ws.WebServiceException
XMLPartisFault in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic boolean isConsumed()
XMLPartisConsumed in interface XMLPartpublic void outputTo(javax.xml.stream.XMLStreamWriter writer, boolean consume) throws javax.xml.stream.XMLStreamException, javax.xml.ws.WebServiceException
XMLPartoutputTo in interface XMLPartwriter - XMLStreamWriterconsume - true if this is the last request on the block.javax.xml.ws.WebServiceExceptionjavax.xml.stream.XMLStreamExceptionpublic String traceString(String indent)
XMLParttraceString in interface XMLPartpublic Block getBodyBlock(int index, Object context, BlockFactory blockFactory) throws javax.xml.ws.WebServiceException
XMLPartgetBodyBlock in interface XMLPartjavax.xml.ws.WebServiceExceptiongetBodyBlockpublic Block getBodyBlock(Object context, BlockFactory blockFactory) throws javax.xml.ws.WebServiceException
XMLPartgetBodyBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic Block getHeaderBlock(String namespace, String localPart, Object context, BlockFactory blockFactory) throws javax.xml.ws.WebServiceException
XMLPartgetHeaderBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic Set<QName> getHeaderQNames()
getHeaderQNames in interface XMLPartpublic List<Block> getHeaderBlocks(String namespace, String localPart, Object context, BlockFactory blockFactory, org.apache.axiom.soap.RolePlayer rolePlayer) throws javax.xml.ws.WebServiceException
XMLPartgetHeaderBlocks in interface XMLPartnamespace - uri of headerlocalPart - local name of headercontext - context for blockFactoryblockFactory - kind of factory (i.e. JAXB)javax.xml.ws.WebServiceExceptionpublic int getNumBodyBlocks()
throws javax.xml.ws.WebServiceException
XMLPartgetNumBodyBlocks in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic List<QName> getBodyBlockQNames() throws javax.xml.ws.WebServiceException
getBodyBlockQNames in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic int getNumHeaderBlocks()
throws javax.xml.ws.WebServiceException
XMLPartgetNumHeaderBlocks in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic void removeBodyBlock(int index)
throws javax.xml.ws.WebServiceException
XMLPartremoveBodyBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic void removeHeaderBlock(String namespace, String localPart) throws javax.xml.ws.WebServiceException
XMLPartremoveHeaderBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic void setBodyBlock(int index,
Block block)
throws javax.xml.ws.WebServiceException
XMLPartsetBodyBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic void setBodyBlock(Block block) throws javax.xml.ws.WebServiceException
XMLPartsetBodyBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic void setHeaderBlock(String namespace, String localPart, Block block) throws javax.xml.ws.WebServiceException
XMLPartsetHeaderBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic void appendHeaderBlock(String namespace, String localPart, Block block) throws javax.xml.ws.WebServiceException
XMLPartappendHeaderBlock in interface XMLPartjavax.xml.ws.WebServiceExceptionpublic Message getParent()
XMLPartpublic void setParent(Message p)
XMLPartprotected abstract org.apache.axiom.om.OMElement _convertSE2OM(javax.xml.soap.SOAPEnvelope se) throws javax.xml.ws.WebServiceException
se - SOAPEnvelopejavax.xml.ws.WebServiceExceptionprotected abstract org.apache.axiom.om.OMElement _convertSpine2OM(org.apache.axis2.jaxws.message.impl.XMLSpine spine) throws javax.xml.ws.WebServiceException
spine - XMLSpinejavax.xml.ws.WebServiceExceptionprotected abstract javax.xml.soap.SOAPEnvelope _convertOM2SE(org.apache.axiom.om.OMElement om) throws javax.xml.ws.WebServiceException
om - javax.xml.ws.WebServiceExceptionprotected abstract javax.xml.soap.SOAPEnvelope _convertSpine2SE(org.apache.axis2.jaxws.message.impl.XMLSpine spine) throws javax.xml.ws.WebServiceException
spine - javax.xml.ws.WebServiceExceptionprotected abstract org.apache.axis2.jaxws.message.impl.XMLSpine _convertOM2Spine(org.apache.axiom.om.OMElement om) throws javax.xml.ws.WebServiceException
om - javax.xml.ws.WebServiceExceptionprotected abstract org.apache.axis2.jaxws.message.impl.XMLSpine _convertSE2Spine(javax.xml.soap.SOAPEnvelope se) throws javax.xml.ws.WebServiceException
SOAPEnvelope - javax.xml.ws.WebServiceExceptionprotected static org.apache.axis2.jaxws.message.impl.XMLSpine _createSpine(Protocol protocol, javax.jws.soap.SOAPBinding.Style style, int indirection, org.apache.axiom.om.OMElement payload) throws javax.xml.ws.WebServiceException
protocol - javax.xml.ws.WebServiceExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.