Apache Tomcat 7.0.28

org.apache.coyote
Interface Adapter

All Known Implementing Classes:
CoyoteAdapter

public interface Adapter

Adapter. This represents the entry point in a coyote-based servlet container.

Author:
Remy Maucherat
See Also:
ProtocolHandler

Method Summary
 boolean asyncDispatch(Request req, Response res, SocketStatus status)
           
 boolean event(Request req, Response res, SocketStatus status)
           
 String getDomain()
          Provide the name of the domain to use to register MBeans for conponents associated with the connector.
 void log(Request req, Response res, long time)
           
 void service(Request req, Response res)
          Call the service method, and notify all listeners
 

Method Detail

service

void service(Request req,
             Response res)
             throws Exception
Call the service method, and notify all listeners

Throws:
Exception - if an error happens during handling of the request. Common errors are:
  • IOException if an input/output error occurs and we are processing an included servlet (otherwise it is swallowed and handled by the top level error handler mechanism)
  • ServletException if a servlet throws an exception and we are processing an included servlet (otherwise it is swallowed and handled by the top level error handler mechanism)
Tomcat should be able to handle and log any other exception ( including runtime exceptions )

event

boolean event(Request req,
              Response res,
              SocketStatus status)
              throws Exception
Throws:
Exception

asyncDispatch

boolean asyncDispatch(Request req,
                      Response res,
                      SocketStatus status)
                      throws Exception
Throws:
Exception

log

void log(Request req,
         Response res,
         long time)

getDomain

String getDomain()
Provide the name of the domain to use to register MBeans for conponents associated with the connector.

Returns:
The MBean domain name

Apache Tomcat 7.0.28

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