public class IPConnectionInfo extends ConnectionInfo
comManId, connectionId, connectionOriented, direction, DIRECTION_IN, DIRECTION_OUT, localCredentialInfo, remoteCredentialInfo, remoteXAddrInfo| Constructor and Description |
|---|
IPConnectionInfo(NetworkInterface iFace,
boolean direction,
IPAddress localAddress,
int localPort,
boolean connectionOriented,
XAddressInfo remoteXAddrInfo,
java.lang.String comManId) |
getComManInfo, getCommunicationManagerId, getConnectionId, getLocalCredentialInfo, getProtocolInfo, getRemoteCredentialInfo, getRemoteXAddress, isConnectionOriented, isIncoming, setComManInfo, setCommunicationManagerId, setLocalCredentialInfo, setProtocolInfo, setRemoteCredentialInfo, setRemoteXAddresspublic IPConnectionInfo(NetworkInterface iFace, boolean direction, IPAddress localAddress, int localPort, boolean connectionOriented, XAddressInfo remoteXAddrInfo, java.lang.String comManId)
public ConnectionInfo createSwappedConnectionInfo()
createSwappedConnectionInfo in class ConnectionInfopublic NetworkInterface getIface()
public java.lang.String getSourceAddress()
getSourceAddress in class ConnectionInfopublic java.lang.String getDestinationAddress()
getDestinationAddress in class ConnectionInfopublic IPAddress getSourceHost()
public int getSourcePort()
public void setSourcePort(int sourcePort)
public IPAddress getDestinationHost()
public int getDestinationPort()
public java.lang.String toString()
toString in class java.lang.Objectpublic URI getTransportAddress()
getTransportAddress in class ConnectionInfopublic void setTransportAddress(URI transportAddress)
public URI chooseNotifyToAddress(CommunicationBinding[] communicationBindings, CommunicationAutoBinding[] communicationAutoBindings, CommunicationStructureListener communicationStructureListener)
chooseNotifyToAddress in class ConnectionInfopublic boolean sourceMatches(CommunicationBinding binding)
sourceMatches in class ConnectionInfobinding - a CommunicationBinding with the address to check.true only if this connectionInfo has a source address matching the specified
info URI.public boolean destinationMatches(CommunicationBinding binding)
destinationMatches in class ConnectionInfobinding - a CommunicationBinding with the address to check.true only if this connectionInfo has a destination address matching the
specified info URI.public boolean sourceMatches(XAddressInfo info)
sourceMatches in class ConnectionInfoinfo - an XAddressInfo with the address to check.true only if this connectionInfo has a source address matching the specified
info URI.public boolean destinationMatches(XAddressInfo info)
destinationMatches in class ConnectionInfoinfo - an XAddressInfo with the address to check.true only if this connectionInfo has a destination address matching the
specified info URI.public boolean sourceMatches(IPAddress address)
address - a IPAddress with the address to check.true only if this connectionInfo has a source address matching the specified
info URI.