Package org.somda.sdc.dpws.soap
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 Summary
Constructors Constructor Description TransportInfo(String scheme, String localAddress, Integer localPort, String remoteAddress, Integer remotePort, List<X509Certificate> x509Certificates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.StringgetRemoteNodeInfo()Returns information of the remote node intended to be used for logging purposes.Optional<Integer>getRemotePort()Returns the remote port used on the transport layer.StringgetScheme()Gets the scheme that identifies the context of this transport information.List<X509Certificate>getX509Certificates()Any transport-layer specific X509 certificates.
-
-
-
Method Detail
-
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.
-
-