Apache Tomcat 7.0.2

org.apache.coyote.http11
Class Http11AprProcessor

java.lang.Object
  extended by org.apache.coyote.http11.AbstractHttp11Processor
      extended by org.apache.coyote.http11.Http11AprProcessor
All Implemented Interfaces:
ActionHook

public class Http11AprProcessor
extends AbstractHttp11Processor
implements ActionHook

Processes HTTP requests.

Author:
Remy Maucherat

Field Summary
protected  boolean async
          Async used
protected  boolean comet
          Comet used.
protected  AprEndpoint endpoint
          Associated endpoint.
protected  InternalAprInputBuffer inputBuffer
          Input.
protected  InternalAprOutputBuffer outputBuffer
          Output.
protected  AprEndpoint.SendfileData sendfileData
          Sendfile data.
protected  long socket
          Socket associated with the current connection.
protected  boolean ssl
          SSL enabled ?
 
Fields inherited from class org.apache.coyote.http11.AbstractHttp11Processor
adapter, compressableMimeTypes, compressionLevel, compressionMinSize, contentDelimitation, disableUploadTimeout, error, expectation, hostNameC, http09, http11, isSecurityEnabled, keepAlive, keepAliveTimeout, localAddr, localName, localPort, maxKeepAliveRequests, maxSavePostSize, noCompressionUserAgents, remoteAddr, remoteHost, remotePort, request, response, restrictedUserAgents, server, sm, socketBuffer, timeout
 
Constructor Summary
Http11AprProcessor(int headerBufferSize, AprEndpoint endpoint)
           
 
Method Summary
 void action(ActionCode actionCode, Object param)
          Send an action to the connector.
 AbstractEndpoint.Handler.SocketState asyncDispatch(long socket, SocketStatus status)
           
 void endRequest()
           
 AbstractEndpoint.Handler.SocketState event(SocketStatus status)
          Process pipelined HTTP requests using the specified input and output streams.
protected  AbstractInputBuffer getInputBuffer()
          Exposes input buffer to super class to allow better code re-use.
protected  AbstractOutputBuffer getOutputBuffer()
          Exposes output buffer to super class to allow better code re-use.
 void parseHost(MessageBytes valueMB)
          Parse host.
protected  void prepareRequest()
          After reading the request headers, we have to setup the request filters.
protected  void prepareResponse()
          When committing the response, we have to validate the set of headers, as well as setup the response filters.
 AbstractEndpoint.Handler.SocketState process(long socket)
          Process pipelined HTTP requests using the specified input and output streams.
 void recycle()
           
 
Methods inherited from class org.apache.coyote.http11.AbstractHttp11Processor
addCompressableMimeType, addFilter, addInputFilter, addNoCompressionUserAgent, addRestrictedUserAgent, findBytes, findCompressableMimeTypes, findRestrictedUserAgents, getAdapter, getCompression, getDisableUploadTimeout, getKeepAliveTimeout, getMaxKeepAliveRequests, getMaxSavePostSize, getRequest, getServer, getSocketBuffer, getTimeout, initializeFilters, isCompressable, setAdapter, setCompressableMimeTypes, setCompressableMimeTypes, setCompression, setCompressionMinSize, setDisableUploadTimeout, setKeepAliveTimeout, setMaxKeepAliveRequests, setMaxSavePostSize, setNoCompressionUserAgents, setNoCompressionUserAgents, setRestrictedUserAgents, setRestrictedUserAgents, setServer, setSocketBuffer, setTimeout, statusDropsConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputBuffer

protected InternalAprInputBuffer inputBuffer
Input.


outputBuffer

protected InternalAprOutputBuffer outputBuffer
Output.


sendfileData

protected AprEndpoint.SendfileData sendfileData
Sendfile data.


comet

protected boolean comet
Comet used.


async

protected boolean async
Async used


ssl

protected boolean ssl
SSL enabled ?


socket

protected long socket
Socket associated with the current connection.


endpoint

protected AprEndpoint endpoint
Associated endpoint.

Constructor Detail

Http11AprProcessor

public Http11AprProcessor(int headerBufferSize,
                          AprEndpoint endpoint)
Method Detail

event

public AbstractEndpoint.Handler.SocketState event(SocketStatus status)
                                           throws IOException
Process pipelined HTTP requests using the specified input and output streams.

Throws:
IOException - error during an I/O operation

process

public AbstractEndpoint.Handler.SocketState process(long socket)
                                             throws IOException
Process pipelined HTTP requests using the specified input and output streams.

Throws:
IOException - error during an I/O operation

asyncDispatch

public AbstractEndpoint.Handler.SocketState asyncDispatch(long socket,
                                                          SocketStatus status)
                                                   throws IOException
Throws:
IOException

endRequest

public void endRequest()

recycle

public void recycle()

action

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

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

prepareRequest

protected void prepareRequest()
After reading the request headers, we have to setup the request filters.


parseHost

public void parseHost(MessageBytes valueMB)
Parse host.


prepareResponse

protected void prepareResponse()
When committing the response, we have to validate the set of headers, as well as setup the response filters.


getInputBuffer

protected AbstractInputBuffer getInputBuffer()
Description copied from class: AbstractHttp11Processor
Exposes input buffer to super class to allow better code re-use.

Specified by:
getInputBuffer in class AbstractHttp11Processor
Returns:
The input buffer used by the processor.

getOutputBuffer

protected AbstractOutputBuffer getOutputBuffer()
Description copied from class: AbstractHttp11Processor
Exposes output buffer to super class to allow better code re-use.

Specified by:
getOutputBuffer in class AbstractHttp11Processor
Returns:
The output buffer used by the processor.

Apache Tomcat 7.0.2

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.