Class ClientTransportBinding

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable , org.somda.sdc.dpws.TransportBinding , org.somda.sdc.dpws.soap.interception.NotificationCallback , org.somda.sdc.dpws.soap.interception.RequestResponseCallback

    
    public class ClientTransportBinding
     implements TransportBinding
                        

    Binding providing request-response and notification capabilities using an HttpClient.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onNotification(SoapMessage notification) Callback that is triggered after an interceptor chain succeeded on the outgoing direction.
      SoapMessage onRequestResponse(SoapMessage request) Callback that is triggered after an interceptor chain succeeded on the outgoing direction.
      void close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onNotification

         void onNotification(SoapMessage notification)

        Callback 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.

        Parameters:
        notification - the notification to push.
      • onRequestResponse

         SoapMessage onRequestResponse(SoapMessage request)

        Callback that is triggered after an interceptor chain succeeded on the outgoing direction.

        Parameters:
        request - the request to convey to the message receiver.
        Returns:

        a SOAP message with the received response from the network.