Class SoapMessageContext
java.lang.Object
com.aquima.interactions.portal.model.session.PortalContextDelegate
com.aquima.interactions.portal.model.session.SoapMessageContext
- All Implemented Interfaces:
ISoapMessageContext
,IPortalContext
,IInternalPortalContext
,Serializable
ISoapMessageContext
default implementation. It provides methods to retrieve and to manipulate a soap message
in a ISoapMessageHandler
instance.- Since:
- 9.5
- Author:
- Radu Batori
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSoapMessageContext
(ISoapServiceDefinition soapDefinition, IInternalPortalContext context, IXmlElementContext soapDocument, IXmlElementContext soapHeader, IXmlElementContext soapBody, String operationName) Constructs a SoapMessageContext. -
Method Summary
Modifier and TypeMethodDescriptionaddHeader
(QualifiedName headerName) Add a SOAP headergetHeader
(QualifiedName headerName) Get a SOAP header by nameGet an modifiableCollection
of the SOAP headers.Get the operation nameGet the SOAP service definitionGet the XML body as stringvoid
removeHeader
(IXmlElementContext header) Remove a SOAP headervoid
setNamespace
(String prefix, String namespace) Set an XML namespacevoid
setSoapBody
(String xmlBody) Replace the current XML SOAP body with the string provided.Methods inherited from class com.aquima.interactions.portal.model.session.PortalContextDelegate
forModule, forModule, getActiveInstance, getApplication, getApplicationMode, getApplicationModel, getAuditEngine, getCaseEngineClient, getCommentsManager, getCommunicationEngine, getComposer, getConfiguration, getConnectionManager, getContentManagerFactory, getContentManagerFactory, getContext, getCurrentFlow, getCurrentLanguage, getDebugger, getDocumentEngine, getElementComposer, getExpressionParser, getFactoryManager, getFlowEngine, getFlowScope, getFunctionCallDefinitionManager, getId, getMappingComposer, getMappingManager, getMaskManager, getMatchEngine, getMetaModel, getPageScope, getProcessScope, getProfile, getProject, getRequestScope, getResourceManager, getRuleEngine, getServiceManager, getSessionId, getSessionScope, getState, getTraceEngine, getTreeEngine, getUserProfile, getUserScope, getWebServices, pushActiveInstance, restore
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.portal.IPortalContext
forModule, forModule, getActiveInstance, getApplicationMode, getAuditEngine, getCaseEngineClient, getCommentsManager, getCommunicationEngine, getConnectionManager, getContentManagerFactory, getContentManagerFactory, getCurrentFlow, getCurrentLanguage, getDebugger, getDocumentEngine, getElementComposer, getExpressionParser, getFlowEngine, getFlowScope, getFunctionCallDefinitionManager, getMappingComposer, getMappingManager, getMaskManager, getMatchEngine, getMetaModel, getPageScope, getProcessScope, getProfile, getProject, getRequestScope, getResourceManager, getRuleEngine, getServiceManager, getSessionId, getSessionScope, getState, getTraceEngine, getTreeEngine, getUserProfile, getUserScope, getWebServices, pushActiveInstance, restore
-
Constructor Details
-
SoapMessageContext
public SoapMessageContext(ISoapServiceDefinition soapDefinition, IInternalPortalContext context, IXmlElementContext soapDocument, IXmlElementContext soapHeader, IXmlElementContext soapBody, String operationName) Constructs a SoapMessageContext.- Parameters:
soapDefinition
- The soap service definitioncontext
- The underlying contextsoapDocument
- The document XML elementsoapHeader
- The SOAP header XML elementsoapBody
- The SOAP body XML elementoperationName
- The SOAP operation name
-
-
Method Details
-
getHeaders
Get an modifiableCollection
of the SOAP headers. UsegetHeader(QualifiedName)
,addHeader(QualifiedName)
andremoveHeader(IXmlElementContext)
to modify the SOAP headers.- Specified by:
getHeaders
in interfaceISoapMessageContext
- Returns:
- The SOAP header unmodifiable collection
-
getHeader
Get a SOAP header by name- Specified by:
getHeader
in interfaceISoapMessageContext
- Parameters:
headerName
- The name of the SOAP header to be returned- Returns:
- The SOAP header if found or null otherwise
-
addHeader
Add a SOAP header- Specified by:
addHeader
in interfaceISoapMessageContext
- Parameters:
headerName
- The name of the header to be added- Returns:
- The added header
-
removeHeader
Remove a SOAP header- Specified by:
removeHeader
in interfaceISoapMessageContext
- Parameters:
header
- The header to be removed
-
getSoapBody
Get the XML body as string- Specified by:
getSoapBody
in interfaceISoapMessageContext
- Returns:
- The XML body
-
setSoapBody
Replace the current XML SOAP body with the string provided.- Specified by:
setSoapBody
in interfaceISoapMessageContext
- Parameters:
xmlBody
- The new XML body. Must be valid XML.- Throws:
XmlParseException
-
getOperationName
Get the operation name- Specified by:
getOperationName
in interfaceISoapMessageContext
- Returns:
-
setNamespace
Set an XML namespace- Specified by:
setNamespace
in interfaceISoapMessageContext
- Parameters:
prefix
- The namespace prefixnamespace
- The actual namespace
-
getServiceDefinition
Get the SOAP service definition- Specified by:
getServiceDefinition
in interfaceISoapMessageContext
- Returns:
- The service definition
-