FileDocCategorySizeDatePackage
Adapter.javaAPI DocGlassfish v2 API4199Fri May 04 22:32:42 BST 2007org.apache.coyote

Adapter

public interface Adapter
Adapter. This represents the entry point to a coyote-based servlet container.
author
Remy Maucherat

Fields Summary
public static final String
CONNECTION_PROCESSING_STARTED
public static final String
CONNECTION_PROCESSING_COMPLETED
public static final String
REQUEST_PROCESSING_STARTED
public static final String
REQUEST_PROCESSING_COMPLETED
Constructors Summary
Methods Summary
public voidafterService(Request req, Response res)
Finish the response and recycle the request/response tokens. Base on the connection header, the underlying socket transport will be closed

public voidfireAdapterEvent(java.lang.String type, java.lang.Object data)
Notify all container event listeners that a particular event has occurred for this Adapter. The default implementation performs this notification synchronously using the calling thread.

param
type Event type
param
data Event data

public voidservice(Request req, Response res)
Call the service method, and notify all listeners

exception
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 )