KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > kohsuke > stapler > Dispatcher


1 package org.kohsuke.stapler;
2
3 import javax.servlet.ServletException JavaDoc;
4 import java.io.IOException JavaDoc;
5 import java.lang.reflect.InvocationTargetException JavaDoc;
6
7 /**
8  * @author Kohsuke Kawaguchi
9  */

10 interface Dispatcher {
11     /**
12      * Trys to handle the given request and returns true
13      * if it succeeds. Otherwise false.
14      *
15      * <p>
16      * We have a few known strategies for handling requests
17      * (for example, one is to try to treat the request as JSP invocation,
18      * another might be try getXXX(), etc) So we use a list of
19      * {@link Dispatcher} and try them one by one until someone
20      * returns true.
21      */

22     boolean dispatch(RequestImpl req, ResponseImpl rsp, Object JavaDoc node)
23         throws IOException JavaDoc, ServletException JavaDoc, IllegalAccessException JavaDoc, InvocationTargetException JavaDoc;
24 }
25
Popular Tags