Interface TransportBindingFactory

All Known Implementing Classes:
ApacheTransportBindingFactoryImpl

public interface TransportBindingFactory
Factory to create TransportBinding instances.

TransportBinding instances can be used to request any DPWS compatible endpoints.

  • Method Details

    • createTransportBinding

      TransportBinding createTransportBinding(String endpointUri, @Nullable CommunicationLog communicationLog) throws UnsupportedOperationException
      Generic factory method to create a binding on the basis of a URI.

      Please note that - depending on the implementation - bindings are not supported. In this case an UnsupportedOperationException is thrown.

      Parameters:
      endpointUri - the URI to create a binding to.
      communicationLog - the communication log to be used for the endpoint. Set to null to use a default communication log.
      Returns:
      a transport binding bound to endpointUri.
      Throws:
      UnsupportedOperationException - if the URI scheme is not supported.
    • createHttpBinding

      TransportBinding createHttpBinding(String endpointUri, @Nullable CommunicationLog communicationLog) throws UnsupportedOperationException
      Creates an HTTP or HTTPS binding.
      Parameters:
      endpointUri - a valid HTTP/HTTPS URI to create a binding to.
      communicationLog - the communication log to be used for the endpoint. Set to null to use a default communication log.
      Returns:
      a transport binding bound to endpointUri.
      Throws:
      UnsupportedOperationException - if the URI scheme type is not supported.