|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.stapler.Dispatcher
public abstract class Dispatcher
Controls the dispatching of incoming HTTP requests.
Field Summary | |
---|---|
static boolean |
TRACE
This flag will activate the evaluation trace. |
static boolean |
TRACE_PER_REQUEST
This flag will activate the per-request evaluation trace for requests that have X-Stapler-Trace set to "true". |
Constructor Summary | |
---|---|
Dispatcher()
|
Method Summary | |
---|---|
abstract boolean |
dispatch(RequestImpl req,
ResponseImpl rsp,
java.lang.Object node)
Trys to handle the given request and returns true if it succeeds. |
static boolean |
isTraceEnabled(StaplerRequest req)
Checks if tracing is enabled for the given request. |
abstract java.lang.String |
toString()
Diagnostic string that explains this dispatch rule. |
static void |
trace(StaplerRequest req,
StaplerResponse rsp,
java.lang.String msg)
|
static void |
trace(StaplerRequest req,
StaplerResponse rsp,
java.lang.String msg,
java.lang.Object... args)
|
static boolean |
traceable()
|
static void |
traceEval(StaplerRequest req,
StaplerResponse rsp,
java.lang.Object node)
|
static void |
traceEval(StaplerRequest req,
StaplerResponse rsp,
java.lang.Object node,
java.lang.String expression)
|
static void |
traceEval(StaplerRequest req,
StaplerResponse rsp,
java.lang.Object node,
java.lang.String prefix,
java.lang.String suffix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static boolean TRACE
public static boolean TRACE_PER_REQUEST
Constructor Detail |
---|
public Dispatcher()
Method Detail |
---|
public abstract boolean dispatch(RequestImpl req, ResponseImpl rsp, java.lang.Object node) throws java.io.IOException, javax.servlet.ServletException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
We have a few known strategies for handling requests
(for example, one is to try to treat the request as JSP invocation,
another might be try getXXX(), etc) So we use a list of
Dispatcher
and try them one by one until someone
returns true.
java.io.IOException
javax.servlet.ServletException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public abstract java.lang.String toString()
toString
in class java.lang.Object
public static boolean traceable()
public static void traceEval(StaplerRequest req, StaplerResponse rsp, java.lang.Object node)
public static void traceEval(StaplerRequest req, StaplerResponse rsp, java.lang.Object node, java.lang.String prefix, java.lang.String suffix)
public static void traceEval(StaplerRequest req, StaplerResponse rsp, java.lang.Object node, java.lang.String expression)
public static void trace(StaplerRequest req, StaplerResponse rsp, java.lang.String msg, java.lang.Object... args)
public static void trace(StaplerRequest req, StaplerResponse rsp, java.lang.String msg)
public static boolean isTraceEnabled(StaplerRequest req)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |