| java.lang.Object org.apache.axis2.jaxws.message.impl.XMLSpineImpl
XMLSpineImpl | class XMLSpineImpl implements XMLSpine(Code) | | XMLSpineImpl
An XMLSpine consists is an OMEnvelope (either a default one or one create from an incoming
message). As Blocks are added or requested, they are placed in the tree as OMSourcedElements.
NOTE: For XML/HTTP (REST) messages, a SOAP 1.1 envelope is built and the xml payload is
placed in the body. This purposely mimics the implementation used by Axis2.
|
Constructor Summary | |
public | XMLSpineImpl(Protocol protocol, Style style, int indirection, OMElement payload) Create a lightweight representation of this protocol (i.e. | public | XMLSpineImpl(SOAPEnvelope envelope, Style style, int indirection, Protocol protocol) |
Method Summary | |
public OMElement | getAsOMElement() | public Block | getBodyBlock(int index, Object context, BlockFactory blockFactory) | public Block | getBodyBlock(Object context, BlockFactory blockFactory) | public Block | getHeaderBlock(String namespace, String localPart, Object context, BlockFactory blockFactory) | public int | getNumBodyBlocks() | public int | getNumHeaderBlocks() | public QName | getOperationElement() | public Message | getParent() | public Protocol | getProtocol() | public Style | getStyle() | public XMLFault | getXMLFault() | public String | getXMLPartContentType() | public XMLStreamReader | getXMLStreamReader(boolean consume) | public boolean | isConsumed() | public boolean | isFault() | public void | outputTo(XMLStreamWriter writer, boolean consume) | public void | removeBodyBlock(int index) | public void | removeHeaderBlock(String namespace, String localPart) | public void | setBodyBlock(int index, Block block) | public void | setBodyBlock(Block block) | public void | setHeaderBlock(String namespace, String localPart, Block block) | public void | setOperationElement(QName operationQName) | public void | setParent(Message p) | public void | setXMLFault(XMLFault xmlFault) | public String | traceString(String indent) |
XMLSpineImpl | public XMLSpineImpl(Protocol protocol, Style style, int indirection, OMElement payload)(Code) | | Create a lightweight representation of this protocol (i.e. the Envelope, Header and Body)
Parameters: protocol - Protocol Parameters: style - Style Parameters: indirection - (0 or 1) indicates location of body blocks Parameters: initialPayload - (OMElement or null...used to add rest payload) |
XMLSpineImpl | public XMLSpineImpl(SOAPEnvelope envelope, Style style, int indirection, Protocol protocol) throws WebServiceException(Code) | | Create spine from an existing OM tree
Parameters: envelope - Parameters: style - Style Parameters: indirection - (0 or 1) indicates location of body blocks throws: WebServiceException - |
getOperationElement | public QName getOperationElement()(Code) | | |
getStyle | public Style getStyle()(Code) | | |
getXMLPartContentType | public String getXMLPartContentType()(Code) | | |
isConsumed | public boolean isConsumed()(Code) | | |
setOperationElement | public void setOperationElement(QName operationQName)(Code) | | |
|
|