com.sun.grizzly.ssl
Class SSLAsyncProtocolFilter

java.lang.Object
  extended by com.sun.grizzly.arp.AsyncProtocolFilter
      extended by com.sun.grizzly.ssl.SSLAsyncProtocolFilter
All Implemented Interfaces:
TaskListener, ProtocolFilter

public class SSLAsyncProtocolFilter
extends AsyncProtocolFilter

Asynchronous SSL support over NIO. This Task handles the SSL requests using a non blocking socket. The SSL handshake is done using this class. Once the handshake is successful, the SSLProcessorTask is executed.

Author:
Jean-Francois Arcand

Field Summary
protected  SSLImplementation sslImplementation
          The Coyote SSLImplementation used to retrive the SSLContext
 
Fields inherited from class com.sun.grizzly.arp.AsyncProtocolFilter
bbSize
 
Fields inherited from interface com.sun.grizzly.ProtocolFilter
SUCCESSFUL_READ
 
Constructor Summary
SSLAsyncProtocolFilter(Class algorithmClass, int port, SSLImplementation sslImplementation)
           
 
Method Summary
protected  void configureByteBufferInputStream(ByteBufferInputStream inputStream, Context context, HttpWorkerThread workerThread)
          Configure ByteBufferInputStream
protected  void configureProcessorTask(ProcessorTask processorTask, Context context, HttpWorkerThread workerThread, Interceptor handler, InputStream inputStream)
          Configure SSLProcessorTask.
protected  ByteBufferInputStream createByteBufferInputStream()
          Creates ByteBufferInputStream
protected  boolean isSecure()
          Is ProtocolFilter secured
 
Methods inherited from class com.sun.grizzly.arp.AsyncProtocolFilter
execute, postExecute, taskEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sslImplementation

protected SSLImplementation sslImplementation
The Coyote SSLImplementation used to retrive the SSLContext

Constructor Detail

SSLAsyncProtocolFilter

public SSLAsyncProtocolFilter(Class algorithmClass,
                              int port,
                              SSLImplementation sslImplementation)
Method Detail

configureProcessorTask

protected void configureProcessorTask(ProcessorTask processorTask,
                                      Context context,
                                      HttpWorkerThread workerThread,
                                      Interceptor handler,
                                      InputStream inputStream)
Configure SSLProcessorTask.

Overrides:
configureProcessorTask in class AsyncProtocolFilter

createByteBufferInputStream

protected ByteBufferInputStream createByteBufferInputStream()
Creates ByteBufferInputStream

Overrides:
createByteBufferInputStream in class AsyncProtocolFilter

configureByteBufferInputStream

protected void configureByteBufferInputStream(ByteBufferInputStream inputStream,
                                              Context context,
                                              HttpWorkerThread workerThread)
Configure ByteBufferInputStream

Overrides:
configureByteBufferInputStream in class AsyncProtocolFilter

isSecure

protected boolean isSecure()
Is ProtocolFilter secured

Overrides:
isSecure in class AsyncProtocolFilter
Returns:
is ProtocolFilter secured


Copyright © 2008 SUN Microsystems. All Rights Reserved.