Class SoapComposer
java.lang.Object
com.aquima.interactions.communication.impl.evaluator.composer.SchemaSetComposer
com.aquima.interactions.communication.impl.evaluator.composer.SoapComposer
Internal class to compose a soap message based on a soap service definition and a profile state.
- Since:
- 9.0
- Author:
- Arjan Pragt
-
Field Summary
Fields inherited from class com.aquima.interactions.communication.impl.evaluator.composer.SchemaSetComposer
schemaSet
-
Constructor Summary
ConstructorsConstructorDescriptionSoapComposer
(ISoapServiceDefinition definition, ICommunicationEngineHandler handler, IValueFormatter valueFormatter) Construct a soap composer with a definition and a handler for custom elements. -
Method Summary
Modifier and TypeMethodDescriptioncomposeRequest
(IInternalPortalContext context, String operationName) This method composes a soap request message.composeRequest
(IInternalPortalContext context, String operationName, ISoapMessageHandler[] soapMessageHandlers) This method composes a soap request message.composeResponse
(IInternalPortalContext context, String operationName) This method composes a soap response message.Methods inherited from class com.aquima.interactions.communication.impl.evaluator.composer.SchemaSetComposer
composeCustomElement, composeElementReference, composeEmpty, composeEmpty, composeNil, composeTypeReference
-
Constructor Details
-
SoapComposer
public SoapComposer(ISoapServiceDefinition definition, ICommunicationEngineHandler handler, IValueFormatter valueFormatter) Construct a soap composer with a definition and a handler for custom elements.- Parameters:
definition
- The service definition, may not be null.handler
- The handler for custom elements, may not be null.valueFormatter
- The ValueFormatter to format the ISingleValue elements, may not be null
-
-
Method Details
-
composeRequest
public ISoapMessage composeRequest(IInternalPortalContext context, String operationName) throws UnknownOperationException, MessageComposeException, UnknownElementMappingException, UnknownTypeMappingException, SoapMessageComposeException This method composes a soap request message.- Parameters:
context
- The context used to compose the request message, may not be null.operationName
- The operation name, may not be null or empty.- Returns:
- The composed soap message, never null.
- Throws:
UnknownOperationException
MessageComposeException
UnknownElementMappingException
UnknownTypeMappingException
SoapMessageComposeException
-
composeRequest
public ISoapMessage composeRequest(IInternalPortalContext context, String operationName, ISoapMessageHandler[] soapMessageHandlers) throws UnknownOperationException, MessageComposeException, UnknownElementMappingException, UnknownTypeMappingException, SoapMessageComposeException This method composes a soap request message.- Parameters:
context
- The context used to compose the request message, may not be null.operationName
- The operation name, may not be null or empty.soapMessageHandlers
- The custom message handlers for the composed request message.- Returns:
- The composed soap message, never null.
- Throws:
UnknownOperationException
MessageComposeException
UnknownElementMappingException
UnknownTypeMappingException
SoapMessageComposeException
-
composeResponse
public ISoapMessage composeResponse(IInternalPortalContext context, String operationName) throws UnknownOperationException, MessageComposeException, UnknownElementMappingException, UnknownTypeMappingException, SoapMessageComposeException This method composes a soap response message.- Parameters:
context
- The context to use to compose the response message, may not be null.operationName
- The operation name, may not be null or empty.- Returns:
- The composed soap message, never null.
- Throws:
UnknownOperationException
MessageComposeException
UnknownElementMappingException
UnknownTypeMappingException
SoapMessageComposeException
-