Package org.somda.sdc.dpws.service
Class HostedServiceTransportBinding
- java.lang.Object
-
- org.somda.sdc.dpws.service.HostedServiceTransportBinding
-
- All Implemented Interfaces:
Closeable,AutoCloseable,NotificationCallback,RequestResponseCallback,TransportBinding
public class HostedServiceTransportBinding extends Object implements TransportBinding
Static transport binding for hosted services.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidonNotification(SoapMessage notification)Callback that is triggered after an interceptor chain succeeded on the outgoing direction.SoapMessageonRequestResponse(SoapMessage request)Callback that is triggered after an interceptor chain succeeded on the outgoing direction.
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
onNotification
public void onNotification(SoapMessage notification) throws MarshallingException, TransportException
Description copied from interface:NotificationCallbackCallback that is triggered after an interceptor chain succeeded on the outgoing direction.As notifications are handled as fire and forget, no faults and answers are accepted.
todo DGr may accept SOAP faults for better error analysis.
- Specified by:
onNotificationin interfaceNotificationCallback- Parameters:
notification- the notification to push.- Throws:
MarshallingException- if an error occurs during marshalling or unmarshalling of a SOAP message.TransportException- if any transport-related exception comes up during processing. This will hinder the response from being received.
-
onRequestResponse
public SoapMessage onRequestResponse(SoapMessage request) throws SoapFaultException, TransportException, MarshallingException
Description copied from interface:RequestResponseCallbackCallback that is triggered after an interceptor chain succeeded on the outgoing direction.- Specified by:
onRequestResponsein interfaceRequestResponseCallback- Parameters:
request- the request to convey to the message receiver.- Returns:
- a SOAP message with the received response from the network.
- Throws:
SoapFaultException- in case the server answers with a SOAP fault.TransportException- if any transport-related exception comes up during processing. This will hinder the response from being received.MarshallingException- if an error occurs during marshalling or unmarshalling of a SOAP message.
-
-