com.sun.grizzly.ssl
Class SSLDefaultProtocolFilter

java.lang.Object
  extended by com.sun.grizzly.http.DefaultProtocolFilter
      extended by com.sun.grizzly.ssl.SSLDefaultProtocolFilter
All Implemented Interfaces:
ProtocolFilter

public class SSLDefaultProtocolFilter
extends DefaultProtocolFilter

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.http.DefaultProtocolFilter
address, algorithmClass, logger, port
 
Fields inherited from interface com.sun.grizzly.ProtocolFilter
SUCCESSFUL_READ
 
Constructor Summary
SSLDefaultProtocolFilter(Class algorithmClass, InetAddress address, int port, SSLImplementation sslImplementation)
           Constructs a new SSLDefaultProtocolFilter.
SSLDefaultProtocolFilter(Class algorithmClass, int port, SSLImplementation sslImplementation)
          Deprecated. Use com.sun.grizzly.ssl.SSLDefaultProtocolFilter#DefaultProtocolFilter(Class, java.net.InetAddress, int)
 
Method Summary
protected  void configureProcessorTask(ProcessorTask processorTask, Context context, StreamAlgorithm streamAlgorithm)
          Configure ProcessorTask.
protected  boolean isSecure()
          Is ProtocolFilter secured
 
Methods inherited from class com.sun.grizzly.http.DefaultProtocolFilter
configureInputBuffer, execute, 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

SSLDefaultProtocolFilter

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

Invokes SSLDefaultProtocolFilter(Class, int, com.sun.grizzly.util.net.SSLImplementation) 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

SSLDefaultProtocolFilter

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

Constructs a new SSLDefaultProtocolFilter.

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)
Configure ProcessorTask.

Overrides:
configureProcessorTask in class DefaultProtocolFilter

isSecure

protected boolean isSecure()
Is ProtocolFilter secured

Overrides:
isSecure in class DefaultProtocolFilter
Returns:
is ProtocolFilter secured


Copyright © 2012 Oracle Corporation. All Rights Reserved.