Interface ContactInfo<C extends Connection>
public interface ContactInfo<C extends Connection>
The ContactInfo represents the information needed to establish a connection
to a (possibly different) process. This is a subset of the PEPt 2.0 connection.
Any implemetnation of this interface must define hashCode and equals properly so that
it may be used in a Map.
It is also recommended that toString() be defined to return a useful summary
of the contact info (e.g. address information).
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new Connection from this ContactInfo.
-
Method Details
-
createConnection
Create a new Connection from this ContactInfo. Throws an IOException if Connection creation fails.- Returns:
- a new
Connection
- Throws:
IOException
- if creation fails
-