Package org.somda.sdc.dpws.soap
Class TransportInfo
java.lang.Object
org.somda.sdc.dpws.soap.TransportInfo
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 Summary
ConstructorsConstructorDescriptionTransportInfo(String scheme, String localAddress, Integer localPort, String remoteAddress, Integer remotePort, List<X509Certificate> x509Certificates) -
Method Summary
Modifier and TypeMethodDescriptionReturns the local address used on the transport layer.Returns the local port used on the transport layer.Returns the remote address used on the transport layer.Returns information of the remote node intended to be used for logging purposes.Returns the remote port used on the transport layer.Gets the scheme that identifies the context of this transport information.Any transport-layer specific X509 certificates.
-
Constructor Details
-
TransportInfo
-
-
Method Details
-
getScheme
Gets the scheme that identifies the context of this transport information.- Returns:
- the scheme; always present.
-
getLocalAddress
Returns the local address used on the transport layer.- Returns:
- the local address or Optional.empty() if none is available.
-
getLocalPort
Returns the local port used on the transport layer.- Returns:
- the local port or Optional.empty() if none is available.
-
getRemoteAddress
Returns the remote address used on the transport layer.- Returns:
- the remote address or Optional.empty() if none is available.
-
getRemotePort
Returns the remote port used on the transport layer.- Returns:
- the remote port or Optional.empty() if none is available.
-
getX509Certificates
Any transport-layer specific X509 certificates.- Returns:
- a list of certificates that can be empty if no transport-layer security is activated.
-
getRemoteNodeInfo
Returns information of the remote node intended to be used for logging purposes.- Returns:
- string representation comprising scheme, address and port.
-