Logo Search packages:      
Sourcecode: jetty version File versions  Download package

org::mortbay::http::SunJsseListener Class Reference

Inheritance diagram for org::mortbay::http::SunJsseListener:

org::mortbay::http::JsseListener org::mortbay::http::SocketListener org::mortbay::util::ThreadedServer org::mortbay::http::HttpListener org::mortbay::util::ThreadPool org::mortbay::util::LifeCycle org::mortbay::util::LifeCycle

List of all members.

Detailed Description

SSL Socket Listener for Sun's JSSE.

This specialization of JsseListener is an specific listener using the Sun reference implementation.

This is heavily based on the work from Court Demas, which in turn is based on the work from Forge Research.

SunJsseListener.java,v 1.20 2005/08/13 00:01:24 gregwilkins Exp
Use org.mortbay.http.SslListener
Greg Wilkins (gregw@mortbay.com)

Court Demas (court@kiwiconsulting.com)

Forge Research Pty Ltd ACN 003 491 576

Definition at line 53 of file SunJsseListener.java.

Public Member Functions

void customizeRequest (HttpConnection connection, HttpRequest request)
int getAcceptorThreads ()
int getAcceptQueueSize ()
int getBufferReserve ()
int getBufferSize ()
int getConfidentialPort ()
String getConfidentialScheme ()
String getDefaultScheme ()
String getHost ()
String getHost ()
HttpHandler getHttpHandler ()
HttpServer getHttpServer ()
boolean getIdentifyListener ()
int getIdleThreads ()
InetAddress getInetAddress ()
InetAddrPort getInetAddrPort ()
int getIntegralPort ()
String getIntegralScheme ()
String getKeystore ()
String getKeystoreProviderClass ()
String getKeystoreProviderName ()
String getKeystoreType ()
int getLingerTimeSecs ()
int getLowResourcePersistTimeMs ()
int getLowResources ()
int getMaxIdleTimeMs ()
int getMaxReadTimeMs ()
int getMaxThreads ()
int getMinThreads ()
String getName ()
boolean getNeedClientAuth ()
String getPoolName ()
int getPort ()
int getPort ()
ServerSocket getServerSocket ()
boolean getTcpNoDelay ()
int getThreads ()
int getThreadsPriority ()
boolean getUseDefaultTrustStore ()
void handle (Object job)
void handleConnection (Socket socket) throws IOException
boolean isConfidential (HttpConnection connection)
boolean isDaemon ()
boolean isIntegral (HttpConnection connection)
boolean isLowOnResources ()
boolean isOutOfResources ()
boolean isStarted ()
void join ()
void open () throws IOException
void persistConnection (HttpConnection connection)
void run (Object job) throws InterruptedException
void setAcceptorThreads (int n)
void setAcceptQueueSize (int acceptQueueSize)
void setBufferReserve (int size)
void setBufferSize (int size)
void setConfidentialPort (int confidentialPort)
void setConfidentialScheme (String confidentialScheme)
void setDaemon (boolean daemon)
void setDefaultScheme (String scheme)
void setHost (String host) throws UnknownHostException
synchronized void setHost (String host) throws UnknownHostException
void setHttpHandler (HttpHandler handler)
void setHttpServer (HttpServer server)
void setIdentifyListener (boolean identifyListener)
synchronized void setInetAddress (InetAddress addr)
synchronized void setInetAddrPort (InetAddrPort address)
void setIntegralPort (int integralPort)
void setIntegralScheme (String integralScheme)
void setKeyPassword (String password)
void setKeystore (String keystore)
void setKeystoreProviderClass (String classname)
void setKeystoreProviderName (String name)
void setKeystoreType (String keystore_type)
void setLingerTimeSecs (int ls)
void setLowResourcePersistTimeMs (int ms)
void setLowResources (int lowResources)
void setMaxIdleTimeMs (int maxIdleTimeMs)
void setMaxReadTimeMs (int ms)
void setMaxStopTimeMs (int ms)
void setMaxThreads (int maxThreads)
void setMinThreads (int minThreads)
void setName (String name)
void setNeedClientAuth (boolean needClientAuth)
void setPassword (String password)
void setPoolName (String name)
void setPort (int port)
synchronized void setPort (int port)
void setTcpNoDelay (boolean tcpNoDelay)
void setThreadsPriority (int priority)
void setUseDefaultTrustStore (boolean flag)
void shrink () throws InterruptedException
void start () throws Exception
void stop () throws InterruptedException
 SunJsseListener (InetAddrPort p_address)
 SunJsseListener ()
String toString ()

Static Public Attributes

static final String __DAEMON = "org.mortbay.util.ThreadPool.daemon"
static final String __PRIORITY = "org.mortbay.util.ThreadPool.priority"
static final String ATTRIBUTE = "org.mortbay.http.HttpListener"
static final String DEFAULT_KEYSTORE = System.getProperty("user.home") + File.separator + ".keystore"
static final String DEFAULT_KEYSTORE_TYPE = System.getProperty(KEYSTORE_TYPE_PROPERTY, KeyStore.getDefaultType())
static final String KEYPASSWORD_PROPERTY = "jetty.ssl.keypassword"
static final String KEYSTORE_PROPERTY = "jetty.ssl.keystore"
static final String KEYSTORE_PROVIDER_CLASS_PROPERTY = "jetty.ssl.keystore.provider.class"
static final String KEYSTORE_PROVIDER_NAME_PROPERTY = "jetty.ssl.keystore.provider.name"
static final String KEYSTORE_TYPE_PROPERTY = "jetty.ssl.keystore.type"
static final String PASSWORD_PROPERTY = "jetty.ssl.password"

Protected Member Functions

Socket accept (ServerSocket p_serverSocket) throws IOException
Socket acceptSocket (int timeout)
Socket acceptSocket (ServerSocket ignored, int timeout)
HttpConnection createConnection (Socket socket) throws IOException
SSLServerSocketFactory createFactory () throws Exception
void customizeRequest (Socket socket, HttpRequest request)
void handleConnection (InputStream in, OutputStream out)
ServerSocket newServerSocket (InetAddrPort p_address, int p_acceptQueueSize) throws IOException
void stopJob (Thread thread, Object job)

Static Package Functions

 [static initializer]

Static Package Attributes

static final String CACHED_INFO_ATTR = CachedInfo.class.getName()

Private Attributes

transient Password _keypassword
String _keystore = DEFAULT_KEYSTORE
String _keystore_provider_class = DEFAULT_KEYSTORE_PROVIDER_CLASS
String _keystore_provider_name = DEFAULT_KEYSTORE_PROVIDER_NAME
String _keystore_type = DEFAULT_KEYSTORE_TYPE
transient Password _password
boolean _useDefaultTrustStore = false

Static Private Attributes

static Log log = LogFactory.getLog(SunJsseListener.class)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index