com.sun.grizzly.ssl
Class SSLProcessorTask

java.lang.Object
  extended by com.sun.grizzly.http.TaskBase
      extended by com.sun.grizzly.http.ProcessorTask
          extended by com.sun.grizzly.ssl.SSLProcessorTask
All Implemented Interfaces:
Task, ActionHook, Processor, Runnable, Callable
Direct Known Subclasses:
SSLAsyncProcessorTask

public class SSLProcessorTask
extends ProcessorTask

Simple ProcessorTask that configure the OutputBuffer using an instance of SSLOutputBuffer. All the request/response operations are delegated to the ProcessorTask

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.http.ProcessorTask
ProcessorTask.PostProcessor
 
Field Summary
 
Fields inherited from class com.sun.grizzly.http.ProcessorTask
adapter, aptCancelKey, asyncExecution, asyncHandler, bufferResponse, compressableMimeTypes, compressionLevel, compressionMinSize, connectionHeaderValueSet, contentDelimitation, defaultResponseType, disableUploadTimeout, dropConnection, error, forcedRequestType, handleKeepAliveBlockingThread, hasRequestInfoRegistered, hostNameC, http09, http11, inputBuffer, inputStream, isAsyncHttpWriteEnabled, keepAlive, keepAliveLeft, localAddr, localName, localPort, maxHttpHeaderSize, maxKeepAliveRequests, maxPostSize, noCompressionUserAgents, oname, outputBuffer, outputStream, remoteAddr, remoteHost, remotePort, request, requestBufferSize, requestCount, requestInfo, reRegisterSelectionKey, response, restrictedUserAgents, sm, socket, sslSupport, started, streamAlgorithm, uploadTimeout
 
Fields inherited from class com.sun.grizzly.http.TaskBase
key, selectorHandler, selectorThread, threadPool, type
 
Fields inherited from interface com.sun.grizzly.http.Task
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK
 
Constructor Summary
SSLProcessorTask()
           
SSLProcessorTask(boolean init, boolean bufferResponse)
           
 
Method Summary
 void action(ActionCode actionCode, Object param)
          Send an action to the connector.
 void initialize()
          Initialize the stream and the buffer used to parse the request.
 void preProcess(InputStream input, OutputStream output)
          Pre process the request by decoding the request line and the header.
 
Methods inherited from class com.sun.grizzly.http.ProcessorTask
addCompressableMimeType, addFilter, addInputFilter, addNoCompressionUserAgent, addRestrictedUserAgent, configPreProcess, createRequest, createResponse, detectCompression, doProcess, doTask, findBytes, findCompressableMimeTypes, findNoCompressionUserAgents, findRestrictedUserAgents, finishResponse, getAdapter, getAptCancelKey, getAsyncHandler, getBufferSize, getCompression, getCompressionMinSize, getDefaultResponseType, getDisableUploadTimeout, getDropConnection, getForcedRequestType, getForceKeepAlive, getInputStream, getMaxHttpHeaderSize, getMaxPostSize, getRequest, getRequestURI, getReRegisterSelectionKey, getSendBufferSize, getSSLSupport, getStreamAlgorithm, getTimeout, getTransactionTimeout, getWorkerThreadID, hasNextRequest, initializeFilters, invokeAdapter, isAsyncExecutionEnabled, isAsyncHttpWriteEnabled, isError, isInitialized, isKeepAlive, isSkipPostExecute, isUseChunking, lookupCompressionFilter, messageDropConnection, parseHost, parseRequest, postProcess, postResponse, prepareForNextRequest, prepareRequest, prepareResponse, preProcess, process, recycle, setAdapter, setAptCancelKey, setAsyncHandler, setAsyncHttpWriteEnabled, setBufferSize, setCompressableMimeType, setCompressableMimeTypes, setCompressableMimeTypes, setCompression, setCompressionMinSize, setConnectionHeaderValueSet, setDefaultResponseType, setDisableUploadTimeout, setDropConnection, setEnableAsyncExecution, setForcedRequestType, setForceKeepAlive, setInputStream, setMaxHttpHeaderSize, setMaxPostSize, setNoCompressionUserAgents, setReRegisterSelectionKey, setRestrictedUserAgents, setSendBufferSize, setSocket, setSSLSupport, setStreamAlgorithm, setTimeout, setTransactionTimeout, setUseChunking, statusDropsConnection, terminateProcess, unregisterMonitoring
 
Methods inherited from class com.sun.grizzly.http.TaskBase
call, execute, execute, getSelectionKey, getSelectorHandler, getSelectorThread, getTaskListener, getThreadPool, getType, run, setSelectionKey, setSelectorHandler, setSelectorThread, setTaskListener, setThreadPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLProcessorTask

public SSLProcessorTask()

SSLProcessorTask

public SSLProcessorTask(boolean init,
                        boolean bufferResponse)
Method Detail

initialize

public void initialize()
Initialize the stream and the buffer used to parse the request.

Overrides:
initialize in class ProcessorTask

preProcess

public void preProcess(InputStream input,
                       OutputStream output)
                throws Exception
Description copied from class: ProcessorTask
Pre process the request by decoding the request line and the header.

Overrides:
preProcess in class ProcessorTask
Parameters:
input - the InputStream to read bytes
output - the OutputStream to write bytes
Throws:
Exception

action

public void action(ActionCode actionCode,
                   Object param)
Send an action to the connector.

Specified by:
action in interface ActionHook
Overrides:
action in class ProcessorTask
Parameters:
actionCode - Type of the action
param - Action parameter


Copyright © 2012 Oracle Corporation. All Rights Reserved.