Package org.somda.sdc.dpws.soap
Class RequestResponseClientImpl
- java.lang.Object
-
- org.somda.sdc.dpws.soap.RequestResponseClientImpl
-
- All Implemented Interfaces:
InterceptorHandler,RequestResponseClient
public class RequestResponseClientImpl extends Object implements RequestResponseClient
Default implementation of RequestResponseClient.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregister(Interceptor interceptor)Registers a callback object.SoapMessagesendRequestResponse(SoapMessage request)Sends a SOAP request message and waits for the response to be received from the recipient.
-
-
-
Method Detail
-
register
public void register(Interceptor interceptor)
Description copied from interface:InterceptorHandlerRegisters a callback object.- Specified by:
registerin interfaceInterceptorHandler- Parameters:
interceptor- an object that possessesMessageInterceptorannotated methods.- See Also:
MessageInterceptor
-
sendRequestResponse
public SoapMessage sendRequestResponse(SoapMessage request) throws SoapFaultException, MarshallingException, TransportException, InterceptorException
Description copied from interface:RequestResponseClientSends a SOAP request message and waits for the response to be received from the recipient.- Specified by:
sendRequestResponsein interfaceRequestResponseClient- Parameters:
request- outgoing request message.- Returns:
- incoming response message.
- Throws:
SoapFaultException- if a SOAP fault comes up during processing.MarshallingException- if any exception occurs during marshalling or unmarshalling of SOAP messages.TransportException- if transport-related exceptions come up during processing. This will hinder the response from being sent.InterceptorException- if one of the interceptors pops up with an error.
-
-