org.apache.mina.examples.echoserver.ssl
Class SSLServerSocketFactory

java.lang.Object
  extended byjavax.net.ServerSocketFactory
      extended byorg.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: 156507 $, $Date: 2005-03-08 08:34:43 +0100 (Tue, 08 Mar 2005) $

Constructor Summary
SSLServerSocketFactory()
           
 
Method Summary
 ServerSocket createServerSocket(int port)
           
 ServerSocket createServerSocket(int port, int backlog)
           
 ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress)
           
static ServerSocketFactory getServerSocketFactory()
           
static boolean isSslEnabled()
           
static void setSslEnabled(boolean newSslEnabled)
           
 
Methods inherited from class javax.net.ServerSocketFactory
createServerSocket, getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLServerSocketFactory

public SSLServerSocketFactory()
Method Detail

createServerSocket

public ServerSocket createServerSocket(int port)
                                throws IOException
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog)
                                throws IOException
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog,
                                       InetAddress ifAddress)
                                throws IOException
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-2007 . All Rights Reserved.