org.kohsuke.stapler
Interface Dispatcher


public interface Dispatcher

Controls the dispatching of incoming HTTP requests.

Author:
Kohsuke Kawaguchi

Method Summary
 boolean dispatch(RequestImpl req, ResponseImpl rsp, java.lang.Object node)
          Trys to handle the given request and returns true if it succeeds.
 

Method Detail

dispatch

boolean dispatch(RequestImpl req,
                 ResponseImpl rsp,
                 java.lang.Object node)
                 throws java.io.IOException,
                        javax.servlet.ServletException,
                        java.lang.IllegalAccessException,
                        java.lang.reflect.InvocationTargetException
Trys to handle the given request and returns true if it succeeds. Otherwise false.

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.

Throws:
java.io.IOException
javax.servlet.ServletException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


Copyright © 2008. All Rights Reserved.