|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.connector.grizzly.TaskBase
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask
com.sun.enterprise.web.connector.grizzly.blocking.ProcessorBlockingTask
public class ProcessorBlockingTask
Process HTTP request. This class is based on
org.apache.coyote.http11.Http11Processor. This class
must be used when NIO Blocking is enabled.
| Field Summary | |
|---|---|
protected SSLImplementation |
sslImplementation
The wrapper used to support SSL. |
| Fields inherited from class com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask |
|---|
adapter, asyncExecution, asyncHandler, bufferResponse, compressableMimeTypes, compressionLevel, compressionMinSize, connectionHeaderValueSet, contentDelimitation, defaultResponseType, disableUploadTimeout, dropConnection, error, forcedRequestType, handler, hasRequestInfoRegistered, hostNameC, http09, http11, inputBuffer, keepAlive, keepAliveLeft, localAddr, localName, localPort, maxHttpHeaderSize, maxKeepAliveRequests, maxPostSize, noCompressionUserAgents, oname, outputBuffer, remoteAddr, remoteHost, remotePort, request, requestBufferSize, requestCount, requestInfo, response, restrictedUserAgents, socket, sslSupport, started, taskContext, taskEvent, uploadTimeout |
| Fields inherited from class com.sun.enterprise.web.connector.grizzly.TaskBase |
|---|
key, listeners, pipeline, recycle, selectorThread, type |
| Fields inherited from interface com.sun.enterprise.web.connector.grizzly.Task |
|---|
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK |
| Constructor Summary | |
|---|---|
ProcessorBlockingTask()
|
|
ProcessorBlockingTask(boolean init)
|
|
| Method Summary | |
|---|---|
int |
countBlockingKeepAlive()
Return the number of blocking keep-alive connection |
protected boolean |
doProcess(InputStream input,
OutputStream output)
Process an HTTP request using a blocking socket |
void |
doTask()
Execute the HTTP request by parsing the header/body, and then by delegating the process to the Catalina container. |
int |
getMaxKeepAliveRequests()
Return the number of Keep-Alive requests that we will honor. |
SSLImplementation |
getSSLImplementation()
Return the current SSLImplementation this Thread |
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. |
boolean |
process(InputStream input,
OutputStream output)
Process pipelined HTTP requests using the specified input and output streams. |
void |
recycle()
Recyle this object. |
void |
setMaxKeepAliveRequests(int maxKeepAliveRequests)
Set the maximum number of Keep-Alive requests to honor. |
void |
setSSLImplementation(SSLImplementation sslImplementation)
Set the SSLImplementation used by this thread.It usually
means HTTPS will be used. |
void |
taskEvent(TaskEvent event)
This method is invoked when a WorkerThread starts
processing a Task object. |
void |
terminateProcess()
Notify the TaskListener that the request has been
fully processed. |
| Methods inherited from class com.sun.enterprise.web.connector.grizzly.TaskBase |
|---|
addTaskListener, call, cancelTask, clearTaskListeners, execute, fireTaskEvent, getKeepAliveStats, getPipeline, getRecycle, getRequestGroupInfo, getSelectionKey, getSelectorThread, getTaskListeners, getType, isMonitoringEnabled, removeTaskListener, run, setPipeline, setRecycle, setSelectionKey, setSelectorThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.web.connector.grizzly.Task |
|---|
addTaskListener, cancelTask, clearTaskListeners, execute, getKeepAliveStats, getPipeline, getRecycle, getRequestGroupInfo, getSelectionKey, getSelectorThread, getTaskListeners, getType, isMonitoringEnabled, removeTaskListener, setPipeline, setRecycle, setSelectionKey, setSelectorThread |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Methods inherited from interface java.util.concurrent.Callable |
|---|
call |
| Field Detail |
|---|
protected SSLImplementation sslImplementation
| Constructor Detail |
|---|
public ProcessorBlockingTask()
public ProcessorBlockingTask(boolean init)
| Method Detail |
|---|
public void initialize()
initialize in interface ProcessorTaskinitialize in class DefaultProcessorTask
public void doTask()
throws IOException
doTask in interface TaskdoTask in class DefaultProcessorTaskIOExceptionpublic void taskEvent(TaskEvent event)
TaskListenerWorkerThread starts
processing a Task object.
taskEvent in interface TaskListenertaskEvent in class DefaultProcessorTask
public boolean process(InputStream input,
OutputStream output)
throws Exception
process in interface ProcessorTaskprocess in interface Processorprocess in class DefaultProcessorTaskinput - stream from which the HTTP requests will be readoutput - stream which will be used to output the HTTP
responses
Exception - error during an I/O operation
public void preProcess(InputStream input,
OutputStream output)
throws Exception
preProcess in interface ProcessorTaskpreProcess in class DefaultProcessorTaskinput - the InputStream to read bytesoutput - the OutputStream to write bytes
Exception
protected boolean doProcess(InputStream input,
OutputStream output)
throws Exception
socket
doProcess in class DefaultProcessorTaskinput - the InputStream to read bytesoutput - the OutputStream to write bytes
Exceptionpublic void terminateProcess()
TaskListener that the request has been
fully processed.
terminateProcess in interface ProcessorTaskterminateProcess in class DefaultProcessorTaskpublic void setMaxKeepAliveRequests(int maxKeepAliveRequests)
public int getMaxKeepAliveRequests()
public int countBlockingKeepAlive()
public SSLImplementation getSSLImplementation()
SSLImplementation this Thread
public void setSSLImplementation(SSLImplementation sslImplementation)
SSLImplementation used by this thread.It usually
means HTTPS will be used.
public void recycle()
recycle in interface Taskrecycle in class DefaultProcessorTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||