com.sun.grizzly.filter
Class SSLPreProcessor

java.lang.Object
  extended by com.sun.grizzly.filter.SSLPreProcessor
All Implemented Interfaces:
AsyncQueueDataProcessor

public class SSLPreProcessor
extends Object
implements AsyncQueueDataProcessor

Version:
1.0
Author:
John Vieten 20.10.2008

Field Summary
static String SSL_PRE_PROCESSOR_KEY
           
 
Constructor Summary
SSLPreProcessor(SSLEngine sslEngine)
           
 
Method Summary
static SSLPreProcessor fromSelectionKey(SelectionKey key)
           
 ByteBuffer getInternalByteBuffer()
          Method returns the processor's internal ByteBuffer.
 void process(ByteBuffer byteBuffer)
          Method is called to process data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSL_PRE_PROCESSOR_KEY

public static final String SSL_PRE_PROCESSOR_KEY
See Also:
Constant Field Values
Constructor Detail

SSLPreProcessor

public SSLPreProcessor(SSLEngine sslEngine)
Method Detail

getInternalByteBuffer

public ByteBuffer getInternalByteBuffer()
Description copied from interface: AsyncQueueDataProcessor
Method returns the processor's internal ByteBuffer.

Specified by:
getInternalByteBuffer in interface AsyncQueueDataProcessor
Returns:
internal processor's ByteBuffer

process

public void process(ByteBuffer byteBuffer)
             throws IOException
Description copied from interface: AsyncQueueDataProcessor
Method is called to process data. Processor could either use passed buffer as input data source and save operation result to the internal ByteBuffer; or passed buffer could be used to return process result to caller.

Specified by:
process in interface AsyncQueueDataProcessor
Parameters:
byteBuffer - ByteBuffer, which, depending on implementation, will be either used as input data source, or contain process results.
Throws:
IOException

fromSelectionKey

public static SSLPreProcessor fromSelectionKey(SelectionKey key)


Copyright © 2012 Oracle Corporation. All Rights Reserved.