Package org.mule.soap.internal.client
Class AbstractSoapCxfClient
java.lang.Object
org.mule.soap.internal.client.AbstractSoapCxfClient
- All Implemented Interfaces:
SoapClient
- Direct Known Subclasses:
DefaultSoapCxfClient,SoapMtomCxfClient
Base
SoapClient implementation for clients that works on top of CXF.- Since:
- 1.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuildCxfAttachments(Map<String, SoapAttachment> attachments) consume(SoapRequest request, TransportDispatcher dispatcher) Sends aSoapRequestblocking the current thread until a response is available or the request times out.createSequence(CreateSequenceRequest request, TransportDispatcher dispatcher) Creates a Reliable Message sequencevoiddestroy()Shuts down the client and all resources that is holding.parseResponse(String operation, TransportResponse transportResponse) Generates aSoapResponsefrom aTransportResponsevoidterminateSequence(TerminateSequenceRequest request, TransportDispatcher dispatcher) Terminates a Reliable Message sequence
-
Field Details
-
MESSAGE_DISPATCHER
- See Also:
-
MULE_ATTACHMENTS_KEY
- See Also:
-
MULE_WSC_ADDRESS
- See Also:
-
MULE_HEADERS_KEY
- See Also:
-
MULE_TRANSPORT_HEADERS_KEY
- See Also:
-
MULE_TRANSPORT_ADDITIONAL_DATA_KEY
- See Also:
-
MULE_SOAP_ACTION
- See Also:
-
MULE_SOAP_OPERATION_STYLE
- See Also:
-
MULE_ENABLE_NAMESPACES
- See Also:
-
-
Method Details
-
consume
Description copied from interface:SoapClientSends aSoapRequestblocking the current thread until a response is available or the request times out.- Specified by:
consumein interfaceSoapClient- Parameters:
request- aSoapRequestinstance.dispatcher- aTransportDispatcherthat will be used to dispatch theSoapRequest- Returns:
- a
SoapResponseinstance with the XML content and Headers if any.
-
parseResponse
Description copied from interface:SoapClientGenerates aSoapResponsefrom aTransportResponse- Specified by:
parseResponsein interfaceSoapClient- Parameters:
operation- The name of the operation related to the responsetransportResponse- aTransportResponseinstance- Returns:
- a
SoapResponseinstance with the XML content and Headers if any.
-
createSequence
Description copied from interface:SoapClientCreates a Reliable Message sequence- Specified by:
createSequencein interfaceSoapClient- Parameters:
request- aCreateSequenceRequestinstance.dispatcher- aTransportDispatcherthat will be used to dispatch the RM protocol message- Returns:
- a
Stringrepresenting a reliable message sequence identifier
-
terminateSequence
Description copied from interface:SoapClientTerminates a Reliable Message sequence- Specified by:
terminateSequencein interfaceSoapClient- Parameters:
request- aTerminateSequenceRequestinstance.dispatcher- aTransportDispatcherthat will be used to dispatch the RM protocol message
-
destroy
public void destroy()Description copied from interface:SoapClientShuts down the client and all resources that is holding.- Specified by:
destroyin interfaceSoapClient
-
buildCxfAttachments
protected abstract Map<String,org.apache.cxf.message.Attachment> buildCxfAttachments(Map<String, SoapAttachment> attachments)
-