|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tomcat.core.Handler
The class that will generate the actual response. Each Handler has a "name" that will determine the content that it will handle.
Field Summary | |
static int |
ACC_ERRORS
|
static int |
ACC_IN_INCLUDE
|
static int |
ACC_INVOCATION_COUNT
|
static int |
ACC_LAST_ACCESSED
ServletWrapper counts. |
static int |
ACC_OVERHEAD
|
static int |
ACC_SERVICE_TIME
|
static int |
ACCOUNTS
|
protected Context |
context
|
protected ContextManager |
contextM
|
protected int |
debug
|
protected java.lang.String |
debugHead
|
protected boolean |
initialized
True if it can handle requests. |
protected boolean |
internal
|
protected java.lang.String |
name
|
protected int |
origin
|
static int |
ORIGIN_ADMIN
The servlet was added by the admin, it should be safed preferably in web.xml |
static int |
ORIGIN_DYNAMIC
any tomcat-specific component that can register mappings that are "re-generable", i.e. |
static int |
ORIGIN_INVOKER
|
static int |
ORIGIN_JSP
|
static int |
ORIGIN_WEB_XML
The servlet was declared in web.xml |
Constructor Summary | |
Handler()
|
Method Summary | |
void |
addInitParam(java.lang.String name,
java.lang.String value)
|
void |
destroy()
Destroy a handler, and notify all the interested interceptors |
protected void |
doDestroy()
This method will be called when the handler is removed ( by admin or timeout ). |
protected void |
doInit()
Initialize the handler. |
protected void |
doService(Request req,
Response res)
This is the actual content generator. |
long |
getAccount(int pos)
|
Context |
getContext()
|
java.lang.String |
getInitParameter(java.lang.String name)
|
java.util.Enumeration |
getInitParameterNames()
|
java.lang.String |
getName()
|
java.lang.Object |
getNote(int pos)
|
int |
getOrigin()
|
void |
init()
Call the init method, and notify all interested listeners. |
boolean |
isInternal()
|
protected void |
log(java.lang.String s)
|
void |
service(Request req,
Response res)
Call the service method, and notify all listeners |
void |
setAccount(int pos,
long value)
|
void |
setContext(Context context)
|
void |
setDebug(int d)
|
void |
setName(java.lang.String servletName)
|
void |
setNote(int pos,
java.lang.Object value)
See ContextManager comments. |
void |
setOrigin(int origin)
Who created this servlet definition - default is 0, i.e. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected Context context
protected ContextManager contextM
protected java.lang.String name
protected boolean initialized
public static final int ORIGIN_WEB_XML
public static final int ORIGIN_INVOKER
public static final int ORIGIN_JSP
public static final int ORIGIN_DYNAMIC
public static final int ORIGIN_ADMIN
protected int origin
protected boolean internal
protected int debug
protected java.lang.String debugHead
public static final int ACC_LAST_ACCESSED
public static final int ACC_INVOCATION_COUNT
public static final int ACC_SERVICE_TIME
public static final int ACC_ERRORS
public static final int ACC_OVERHEAD
public static final int ACC_IN_INCLUDE
public static final int ACCOUNTS
Constructor Detail |
public Handler()
Method Detail |
public void setContext(Context context)
public Context getContext()
public boolean isInternal()
public java.lang.String getName()
public void setName(java.lang.String servletName)
public void addInitParam(java.lang.String name, java.lang.String value)
public java.lang.String getInitParameter(java.lang.String name)
public java.util.Enumeration getInitParameterNames()
protected void doDestroy() throws java.lang.Exception
public void destroy() throws java.lang.Exception
protected void doInit() throws java.lang.Exception
public void init() throws java.lang.Exception
protected void doService(Request req, Response res) throws java.lang.Exception
public void service(Request req, Response res)
public java.lang.String toString()
public void setOrigin(int origin)
public int getOrigin()
public void setDebug(int d)
protected void log(java.lang.String s)
public void setAccount(int pos, long value)
public long getAccount(int pos)
public void setNote(int pos, java.lang.Object value)
public java.lang.Object getNote(int pos)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |