FileDocCategorySizeDatePackage
ActionCode.javaAPI DocApache Tomcat 6.0.145105Fri Jul 20 04:20:36 BST 2007org.apache.coyote

ActionCode

public final class ActionCode extends Object
Enumerated class containing the adapter event codes. Actions represent callbacks from the servlet container to the coyote connector. Actions are implemented by ProtocolHandler, using the ActionHook interface.
see
ProtocolHandler
see
ActionHook
author
Remy Maucherat

Fields Summary
public static final ActionCode
ACTION_ACK
public static final ActionCode
ACTION_CLOSE
public static final ActionCode
ACTION_COMMIT
public static final ActionCode
ACTION_CLIENT_FLUSH
A flush() operation originated by the client ( i.e. a flush() on the servlet output stream or writer, called by a servlet ). Argument is the Response.
public static final ActionCode
ACTION_CUSTOM
public static final ActionCode
ACTION_RESET
public static final ActionCode
ACTION_START
public static final ActionCode
ACTION_STOP
public static final ActionCode
ACTION_WEBAPP
public static final ActionCode
ACTION_POST_REQUEST
Hook called after request, but before recycling. Can be used for logging, to update counters, custom cleanup - the request is still visible
public static final ActionCode
ACTION_REQ_HOST_ATTRIBUTE
Callback for lazy evaluation - extract the remote host address.
public static final ActionCode
ACTION_REQ_HOST_ADDR_ATTRIBUTE
Callback for lazy evaluation - extract the remote host infos (address, name, port) and local address.
public static final ActionCode
ACTION_REQ_SSL_ATTRIBUTE
Callback for lazy evaluation - extract the SSL-related attributes.
public static final ActionCode
ACTION_NEW_REQUEST
Chain for request creation. Called each time a new request is created ( requests are recycled ).
public static final ActionCode
ACTION_REQ_SSL_CERTIFICATE
Callback for lazy evaluation - extract the SSL-certificate (including forcing a re-handshake if necessary)
public static final ActionCode
ACTION_REQ_REMOTEPORT_ATTRIBUTE
Callback for lazy evaluation - socket remote port.
public static final ActionCode
ACTION_REQ_LOCALPORT_ATTRIBUTE
Callback for lazy evaluation - socket local port.
public static final ActionCode
ACTION_REQ_LOCAL_ADDR_ATTRIBUTE
Callback for lazy evaluation - local address.
public static final ActionCode
ACTION_REQ_LOCAL_NAME_ATTRIBUTE
Callback for lazy evaluation - local address.
public static final ActionCode
ACTION_REQ_SET_BODY_REPLAY
Callback for setting FORM auth body replay
public static final ActionCode
ACTION_COMET_BEGIN
Callback for begin Comet processing
public static final ActionCode
ACTION_COMET_END
Callback for begin Comet processing
public static final ActionCode
ACTION_AVAILABLE
Callback for getting the amount of available bytes
int
code
Constructors Summary
private ActionCode(int code)
Private constructor.


           
       
        this.code=code;
    
Methods Summary
public intgetCode()
Action id, useable in switches and table indexes

        return code;