org.apache.mina.examples.echoserver.ssl
Class SSLServerSocketFactory
java.lang.Object
javax.net.ServerSocketFactory
org.apache.mina.examples.echoserver.ssl.SSLServerSocketFactory
public class SSLServerSocketFactory
- extends ServerSocketFactory
Simple Server Socket factory to create sockets with or without SSL enabled.
If SSL enabled a "bougus" SSL Context is used (suitable for test purposes)
- Version:
- $Rev: 264677 $, $Date: 2005-08-30 11:44:35 +0900 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLServerSocketFactory
public SSLServerSocketFactory()
createServerSocket
public ServerSocket createServerSocket(int port)
throws IOException
- Specified by:
createServerSocket
in class ServerSocketFactory
- Throws:
IOException
createServerSocket
public ServerSocket createServerSocket(int port,
int backlog)
throws IOException
- Specified by:
createServerSocket
in class ServerSocketFactory
- Throws:
IOException
createServerSocket
public ServerSocket createServerSocket(int port,
int backlog,
InetAddress ifAddress)
throws IOException
- Specified by:
createServerSocket
in class ServerSocketFactory
- Throws:
IOException
getServerSocketFactory
public static ServerSocketFactory getServerSocketFactory()
throws IOException
- Throws:
IOException
isSslEnabled
public static boolean isSslEnabled()
setSslEnabled
public static void setSslEnabled(boolean newSslEnabled)
Copyright © 2004-2005 . All Rights Reserved.