public abstract class OtpGenericTransportFactory extends java.lang.Object implements OtpTransportFactory
| Constructor and Description |
|---|
OtpGenericTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
OtpServerTransport |
createServerTransport(int port)
Create instance of
OtpServerTransport |
abstract OtpServerTransport |
createServerTransport(OtpLocalNode node)
Create an instance of a server-side
OtpServerTransport |
OtpTransport |
createTransport(java.net.InetAddress addr,
int port)
Create instance of
OtpTransport |
abstract OtpTransport |
createTransport(OtpPeer peer)
Create an instance of a client-side
OtpTransport |
OtpTransport |
createTransport(java.lang.String addr,
int port)
Implement the 3 original methods by throwing an exception as the usage
of a port is not supported by this subclass of OtpTransportFactory.
|
public abstract OtpTransport createTransport(OtpPeer peer) throws java.io.IOException
OtpTransportpeer - the peer identifying the server to connect tojava.io.IOExceptionpublic abstract OtpServerTransport createServerTransport(OtpLocalNode node) throws java.io.IOException
OtpServerTransportnode - the local node identifying the transport to create server-sidejava.io.IOExceptionpublic OtpTransport createTransport(java.lang.String addr, int port) throws java.io.IOException
createTransport in interface OtpTransportFactoryaddr - host name or IP address stringport - port numberjava.io.IOExceptionpublic OtpTransport createTransport(java.net.InetAddress addr, int port) throws java.io.IOException
OtpTransportFactoryOtpTransportcreateTransport in interface OtpTransportFactoryaddr - peer addressport - port numberjava.io.IOExceptionpublic OtpServerTransport createServerTransport(int port) throws java.io.IOException
OtpTransportFactoryOtpServerTransportcreateServerTransport in interface OtpTransportFactoryport - port number to listen onjava.io.IOException