Package fr.dyade.aaa.common.net
Class SocketFactory13
- java.lang.Object
-
- fr.dyade.aaa.common.net.SocketFactory
-
- fr.dyade.aaa.common.net.SocketFactory13
-
@Deprecated public class SocketFactory13 extends SocketFactory
Deprecated.This class implements the SocketFactory interface for JDK prior to 1.4. Joram needs at least Java 8, so this class is no longer used. TODO (AF): To remove in Joram 5.18.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static SocketFactoryfactoryDeprecated.The SocketFactory singleton for this class.-
Fields inherited from class fr.dyade.aaa.common.net.SocketFactory
DefaultFactory, logger
-
-
Constructor Summary
Constructors Constructor Description SocketFactory13()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SocketcreateSocket(InetAddress addr, int port, int timeout)Deprecated.Creates a stream socket and connects it to the specified port number at the specified IP address.SocketcreateSocket(InetAddress addr, int port, InetAddress localAddr, int localPort, int timeout)Deprecated.Creates a socket and connects it to the specified remote host on the specified remote port.static SocketFactorygetFactory()Deprecated.Returns the SocketFactory singleton for this class.-
Methods inherited from class fr.dyade.aaa.common.net.SocketFactory
getDefaultFactory, getFactory, getSocketFactory
-
-
-
-
Field Detail
-
factory
static SocketFactory factory
Deprecated.The SocketFactory singleton for this class.
-
-
Method Detail
-
getFactory
public static SocketFactory getFactory()
Deprecated.Returns the SocketFactory singleton for this class.- Returns:
- The SocketFactory singleton for this class.
-
createSocket
public Socket createSocket(InetAddress addr, int port, int timeout) throws IOException
Deprecated.Creates a stream socket and connects it to the specified port number at the specified IP address. Try to establish the connection to the server with a specified timeout value. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs.Be careful, currently the timeout option is not implemented. If the specified timeout is not equals to 0 this method throws an UnsupportedOperationException.
- Specified by:
createSocketin classSocketFactory- Parameters:
addr- the IP address.port- the port number.timeout- the timeout value to be used in milliseconds.- Returns:
- the created socket.
- Throws:
IOException- if an I/O error occurs when opening the socket.
-
createSocket
public Socket createSocket(InetAddress addr, int port, InetAddress localAddr, int localPort, int timeout) throws IOException
Deprecated.Creates a socket and connects it to the specified remote host on the specified remote port. The Socket will also bind() to the local address and port supplied. Try to establish the connection to the server with a specified timeout value. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs.Be careful, currently the timeout option is not implemented. If the specified timeout is not equals to 0 this method throws an UnsupportedOperationException.
- Specified by:
createSocketin classSocketFactory- Parameters:
addr- the IP address of the remote hostport- the remote portlocalAddr- the local address the socket is bound tolocalPort- the local port the socket is bound totimeout- the timeout value to be used in milliseconds.- Returns:
- the created socket.
- Throws:
IOException- if an I/O error occurs when opening the socket.
-
-