com.sun.enterprise.web.connector.grizzly.ssl
Class SSLWorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl
          extended by com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread
All Implemented Interfaces:
WorkerThread, Runnable

public class SSLWorkerThread
extends WorkerThreadImpl

Simple WorkerThread used to execute SSL over NIO requests. All ByteBuffer used by this class MUST be created by client of this classes.

Author:
Jean-Francois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl
byteBuffer, doTask, pipeline, target, threadGroup
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SSLWorkerThread(Pipeline pipeline, String name)
          Create a Thread that will synchronizes/block on SSLPipeline instance.
SSLWorkerThread(ThreadGroup threadGroup, Runnable runnable)
          Create a Thread that will synchronizes/block on SSLPipeline instance.
 
Method Summary
 ByteBuffer getInputBB()
          Return the encrypted ByteBuffer used to handle request.
 ByteBuffer getOutputBB()
          Return the encrypted ByteBuffer used to handle response.
 SSLEngine getSSLEngine()
          Set the SSLEngine.
 void run()
          Perform a Task processing.
 void setInputBB(ByteBuffer inputBB)
          Set the encrypted ByteBuffer used to handle request.
 void setOutputBB(ByteBuffer outputBB)
          Set the encrypted ByteBuffer used to handle response.
 void setSSLEngine(SSLEngine sslEngine)
          Get the SSLEngine.
 
Methods inherited from class com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl
getByteBuffer, setByteBuffer, terminate
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSLWorkerThread

public SSLWorkerThread(ThreadGroup threadGroup,
                       Runnable runnable)
Create a Thread that will synchronizes/block on SSLPipeline instance.


SSLWorkerThread

public SSLWorkerThread(Pipeline pipeline,
                       String name)
Create a Thread that will synchronizes/block on SSLPipeline instance.

Method Detail

run

public void run()
Perform a Task processing.

Specified by:
run in interface Runnable
Overrides:
run in class WorkerThreadImpl

getInputBB

public ByteBuffer getInputBB()
Return the encrypted ByteBuffer used to handle request.


setInputBB

public void setInputBB(ByteBuffer inputBB)
Set the encrypted ByteBuffer used to handle request.


getOutputBB

public ByteBuffer getOutputBB()
Return the encrypted ByteBuffer used to handle response.


setOutputBB

public void setOutputBB(ByteBuffer outputBB)
Set the encrypted ByteBuffer used to handle response.


getSSLEngine

public SSLEngine getSSLEngine()
Set the SSLEngine.


setSSLEngine

public void setSSLEngine(SSLEngine sslEngine)
Get the SSLEngine.



Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.