org.systinet.wasp.soap
Class WaspSOAPMessage

java.lang.Object
  extended byjavax.xml.soap.SOAPMessage
      extended byorg.systinet.wasp.soap.WaspSOAPMessage
All Implemented Interfaces:
java.lang.Cloneable

public abstract class WaspSOAPMessage
extends SOAPMessage
implements java.lang.Cloneable

This class represents SOAPMessage that is used by WSO2 SOA Enablement Server. New features were added to this representation of SOAPMessage. WaspSOAPMessage supports multiple XML protocols and also provides functions which increase usability.

Since:
4.6
Component:
Core

Field Summary
static java.lang.String XML_PROTOCOL_HTTPGET
          HTTP GET as protocol.
static java.lang.String XML_PROTOCOL_SOAP11
          SOAP 1.1 as XML protocol.
static java.lang.String XML_PROTOCOL_SOAP12
          SOAP 1.2 as XML protocol.
 
Constructor Summary
WaspSOAPMessage()
           
 
Method Summary
abstract  java.lang.Object clone()
          Clones given message.
abstract  java.lang.String getAttachmentType()
          Gets attachemnt type of the message if it contains attachments.
abstract  MessageFactory getMessageFactory()
          Gets factory which was used to create this instance of WaspSOAPMessage and which can be used to create another instances.
abstract  java.lang.String getSOAPAction()
          Gets the SOAP action from the message.
abstract  java.lang.String getXMLProtocol()
          Gets version of XML protocol that this instance supports.
abstract  void release()
          Notifies the implementation that this instance is no longer being used by the application and that the implementation is free to reuse this object for WaspSoapMessages that may be created later.
abstract  void setAttachmentType(java.lang.String attachmentType)
          Sets attachemnt type of the message if it contains attachments.
abstract  void setSOAPAction(java.lang.String soapAction)
          Sets the SOAP action to the message.
 
Methods inherited from class javax.xml.soap.SOAPMessage
addAttachmentPart, countAttachments, createAttachmentPart, createAttachmentPart, createAttachmentPart, getAttachments, getAttachments, getContentDescription, getMimeHeaders, getSOAPPart, removeAllAttachments, saveChanges, saveRequired, setContentDescription, writeTo
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_PROTOCOL_SOAP11

public static final java.lang.String XML_PROTOCOL_SOAP11
SOAP 1.1 as XML protocol. This is used by getXMLProtocol()

See Also:
CallContext.XML_PROTOCOL, Constant Field Values

XML_PROTOCOL_SOAP12

public static final java.lang.String XML_PROTOCOL_SOAP12
SOAP 1.2 as XML protocol. This is used by getXMLProtocol().

See Also:
CallContext.XML_PROTOCOL, Constant Field Values

XML_PROTOCOL_HTTPGET

public static final java.lang.String XML_PROTOCOL_HTTPGET
HTTP GET as protocol. This is used by getXMLProtocol().

See Also:
CallContext.XML_PROTOCOL, Constant Field Values
Constructor Detail

WaspSOAPMessage

public WaspSOAPMessage()
Method Detail

getXMLProtocol

public abstract java.lang.String getXMLProtocol()
Gets version of XML protocol that this instance supports.

Returns:
version of XML protocol that this instance supports.
See Also:
XML_PROTOCOL_SOAP11, XML_PROTOCOL_SOAP12

getSOAPAction

public abstract java.lang.String getSOAPAction()
Gets the SOAP action from the message.

Returns:
SOAP action from the message or NULL if SOAP action was not set.

setSOAPAction

public abstract void setSOAPAction(java.lang.String soapAction)
Sets the SOAP action to the message.

Parameters:
soapAction - SOAP action to be set

getAttachmentType

public abstract java.lang.String getAttachmentType()
Gets attachemnt type of the message if it contains attachments.

Returns:
message attachment type
See Also:
Message.CT_APPLICATION_DIME, org.idoox.transport.Message#CT_MULTIPART_RELATED}

setAttachmentType

public abstract void setAttachmentType(java.lang.String attachmentType)
Sets attachemnt type of the message if it contains attachments. You can use constants defined on transport message (Message.CT_APPLICATION_DIME or Message.CT_MULTIPART_RELATED).

Parameters:
attachmentType - message attachment type

release

public abstract void release()
Notifies the implementation that this instance is no longer being used by the application and that the implementation is free to reuse this object for WaspSoapMessages that may be created later.


getMessageFactory

public abstract MessageFactory getMessageFactory()
Gets factory which was used to create this instance of WaspSOAPMessage and which can be used to create another instances.

Returns:
factory which was used to create this instance of WaspSOAPMessage and which can be used to create another instances.
See Also:
WaspMessageFactory

clone

public abstract java.lang.Object clone()
Clones given message.

Returns:
Message clone.