Package org.jivesoftware.openfire.net
Class BlockingAcceptingMode
- java.lang.Object
-
- org.jivesoftware.openfire.net.BlockingAcceptingMode
-
@Deprecated public class BlockingAcceptingMode extends Object
Deprecated.Old, pre NIO / MINA code. Should not be used as NIO offers better performanceAccepts new socket connections and uses a thread for each new connection.- Author:
- Gaston Dombiak
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandirectTLSDeprecated.true if data is to be encrypted directly (as opposed to StartTLS).protected booleannotTerminatedDeprecated.True while this thread should continue running.protected ServerSocketserverSocketDeprecated.socket that listens for connections.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlockingAcceptingMode(int tcpPort, InetAddress bindInterface, boolean directTLS)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SocketReadercreateServerSocketReader(Socket sock, boolean isSecure, boolean useBlockingMode)Deprecated.SocketReadergetLastReader()Deprecated.The last socket reader that was created (if any).booleanisDirectTLS()Deprecated.Returns if the port expects sockets to be encrypted immediately (direct TLS).voidrun()Deprecated.About as simple as it gets.voidshutdown()Deprecated.
-
-
-
Field Detail
-
notTerminated
protected boolean notTerminated
Deprecated.True while this thread should continue running.
-
serverSocket
protected ServerSocket serverSocket
Deprecated.socket that listens for connections.
-
directTLS
protected final boolean directTLS
Deprecated.true if data is to be encrypted directly (as opposed to StartTLS).
-
-
Constructor Detail
-
BlockingAcceptingMode
protected BlockingAcceptingMode(int tcpPort, InetAddress bindInterface, boolean directTLS) throws IOExceptionDeprecated.- Throws:
IOException
-
-
Method Detail
-
run
public void run()
Deprecated.About as simple as it gets. The thread spins around an accept call getting sockets and creating new reading threads for each new connection.
-
getLastReader
public SocketReader getLastReader()
Deprecated.The last socket reader that was created (if any). This is intended to be used for unit testing purposes only.
-
isDirectTLS
public boolean isDirectTLS()
Deprecated.Returns if the port expects sockets to be encrypted immediately (direct TLS).- Returns:
- true when direct TLS is expected, otherwise false.
-
shutdown
public void shutdown()
Deprecated.
-
createServerSocketReader
public SocketReader createServerSocketReader(Socket sock, boolean isSecure, boolean useBlockingMode) throws IOException
Deprecated.- Throws:
IOException
-
-