Class TransportInfo
-
- All Implemented Interfaces:
public class TransportInfoUtility 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)
-
-
Field Summary
Fields Modifier and Type Field Description public final Stringschemepublic final List<X509Certificate>x509Certificates
-
Constructor Summary
Constructors Constructor Description TransportInfo(String scheme, String localAddress, Integer localPort, String remoteAddress, Integer remotePort, List<X509Certificate> x509Certificates)
-
Method Summary
Modifier and Type Method Description StringgetScheme()Gets the scheme that identifies the context of this transport information. List<X509Certificate>getX509Certificates()Any transport-layer specific X509 certificates. Optional<String>getLocalAddress()Returns the local address used on the transport layer. Optional<Integer>getLocalPort()Returns the local port used on the transport layer. Optional<String>getRemoteAddress()Returns the remote address used on the transport layer. Optional<Integer>getRemotePort()Returns the remote port used on the transport layer. StringgetRemoteNodeInfo()Returns information of the remote node intended to be used for logging purposes. -
-
Method Detail
-
getScheme
String getScheme()
Gets the scheme that identifies the context of this transport information.
- Returns:
the scheme; always present.
-
getX509Certificates
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.
-
getLocalAddress
Optional<String> getLocalAddress()
Returns the local address used on the transport layer.
- Returns:
the local address or empty if none is available.
-
getLocalPort
Optional<Integer> getLocalPort()
Returns the local port used on the transport layer.
- Returns:
the local port or empty if none is available.
-
getRemoteAddress
Optional<String> getRemoteAddress()
Returns the remote address used on the transport layer.
- Returns:
the remote address or empty if none is available.
-
getRemotePort
Optional<Integer> getRemotePort()
Returns the remote port used on the transport layer.
- Returns:
the remote port or empty if none is available.
-
getRemoteNodeInfo
String getRemoteNodeInfo()
Returns information of the remote node intended to be used for logging purposes.
- Returns:
string representation comprising scheme, address and port.
-
-
-
-