Class TransportInfo

java.lang.Object
org.somda.sdc.dpws.soap.TransportInfo

public class TransportInfo extends Object
Utility class to provide transport information.

Transport information comprises:

  • the transportation scheme (e.g., soap-over-udp, http, https)
  • local address and port information (if available)
  • remote address and port information (if available)
  • Transport layer certificates (if available)
  • Constructor Details

  • Method Details

    • getScheme

      public String getScheme()
      Gets the scheme that identifies the context of this transport information.
      Returns:
      the scheme; always present.
    • getLocalAddress

      public Optional<String> getLocalAddress()
      Returns the local address used on the transport layer.
      Returns:
      the local address or Optional.empty() if none is available.
    • getLocalPort

      public Optional<Integer> getLocalPort()
      Returns the local port used on the transport layer.
      Returns:
      the local port or Optional.empty() if none is available.
    • getRemoteAddress

      public Optional<String> getRemoteAddress()
      Returns the remote address used on the transport layer.
      Returns:
      the remote address or Optional.empty() if none is available.
    • getRemotePort

      public Optional<Integer> getRemotePort()
      Returns the remote port used on the transport layer.
      Returns:
      the remote port or Optional.empty() if none is available.
    • getX509Certificates

      public List<X509Certificate> getX509Certificates()
      Any transport-layer specific X509 certificates.
      Returns:
      a list of certificates that can be empty if no transport-layer security is activated.
    • getRemoteNodeInfo

      public String getRemoteNodeInfo()
      Returns information of the remote node intended to be used for logging purposes.
      Returns:
      string representation comprising scheme, address and port.