com.sun.grizzly.ssl
Class SSLAsyncProtocolFilter

java.lang.Object
  extended by com.sun.grizzly.http.DefaultProtocolFilter
      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, interceptor
 
Fields inherited from class com.sun.grizzly.http.DefaultProtocolFilter
address, algorithmClass, logger, port
 
Fields inherited from interface com.sun.grizzly.ProtocolFilter
SUCCESSFUL_READ
 
Constructor Summary
SSLAsyncProtocolFilter(Class algorithmClass, InetAddress address, int port, SSLImplementation sslImplementation)
           Constructs a new SSLAsyncProtocolFilter.
SSLAsyncProtocolFilter(Class algorithmClass, int port, SSLImplementation sslImplementation)
          Deprecated. Use com.sun.grizzly.ssl.SSLAsyncProtocolFilter#AsyncProtocolFilter(Class, java.net.InetAddress, int)
 
Method Summary
protected  void configureInputBuffer(InputReader inputStream, Context context, HttpWorkerThread workerThread)
          Configure InputReader.
protected  void configureProcessorTask(ProcessorTask processorTask, Context context, StreamAlgorithm streamAlgorithm, InputStream inputStream)
          Configure SSLProcessorTask.
protected  InputReader createInputReader()
          Creates InputReader
protected  boolean isSecure()
          Is ProtocolFilter secured
 
Methods inherited from class com.sun.grizzly.arp.AsyncProtocolFilter
execute, getInterceptor, setInterceptor, taskEvent
 
Methods inherited from class com.sun.grizzly.http.DefaultProtocolFilter
configureProcessorTask, postExecute
 
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

@Deprecated
public SSLAsyncProtocolFilter(Class algorithmClass,
                                         int port,
                                         SSLImplementation sslImplementation)
Deprecated. Use com.sun.grizzly.ssl.SSLAsyncProtocolFilter#AsyncProtocolFilter(Class, java.net.InetAddress, int)

Invokes com.sun.grizzly.ssl.SSLAsyncProtocolFilter#AsyncProtocolFilter(Class, java.net.InetAddress, int) with a null InetAddress.

Parameters:
algorithmClass - the StreamAlgorithm
port - the network port to associate with this filter
sslImplementation - the SSLImplementation to associate with this filter

SSLAsyncProtocolFilter

public SSLAsyncProtocolFilter(Class algorithmClass,
                              InetAddress address,
                              int port,
                              SSLImplementation sslImplementation)

Constructs a new SSLAsyncProtocolFilter.

Parameters:
algorithmClass - the StreamAlgorithm
address - the network address to associate with this filter
port - the network port to associate with this filter
sslImplementation - the SSLImplementation to associate with this filter
Method Detail

configureProcessorTask

protected void configureProcessorTask(ProcessorTask processorTask,
                                      Context context,
                                      StreamAlgorithm streamAlgorithm,
                                      InputStream inputStream)
Configure SSLProcessorTask.

Overrides:
configureProcessorTask in class AsyncProtocolFilter

createInputReader

protected InputReader createInputReader()
Creates InputReader

Overrides:
createInputReader in class AsyncProtocolFilter

configureInputBuffer

protected void configureInputBuffer(InputReader inputStream,
                                    Context context,
                                    HttpWorkerThread workerThread)
Configure InputReader.

Overrides:
configureInputBuffer in class AsyncProtocolFilter

isSecure

protected boolean isSecure()
Is ProtocolFilter secured

Overrides:
isSecure in class DefaultProtocolFilter
Returns:
is ProtocolFilter secured


Copyright © 2012 Oracle Corporation. All Rights Reserved.