Class ApacheTransportBindingFactoryImpl

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final HttpClient client
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getClient

         HttpClient getClient()

        Access the configured apache http client.

        Note: Do not use this client for productive purposes, always use the TransportBinding instead. This is only useful if you want to send intentionally bad messages to a server, which you most likely do not want.

        Returns:

        the configured apache http client

      • createTransportBinding

         TransportBinding createTransportBinding(String endpointUri, @Nullable() CommunicationLogContext communicationLogContext)

        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.
        communicationLogContext - additional information made available in the communication log
        Returns:

        a transport binding bound to endpointUri.

      • createHttpBinding

         TransportBinding createHttpBinding(String endpointUri, @Nullable() CommunicationLogContext communicationLogContext)

        Creates an HTTP or HTTPS binding.

        Parameters:
        endpointUri - a valid HTTP/HTTPS URI to create a binding to.
        communicationLogContext - additional information made available in the communication log
        Returns:

        a transport binding bound to endpointUri.