KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > roller > ui > rendering > RequestMapper


1
2 package org.apache.roller.ui.rendering;
3
4 import java.io.IOException JavaDoc;
5 import javax.servlet.ServletException JavaDoc;
6 import javax.servlet.http.HttpServletRequest JavaDoc;
7 import javax.servlet.http.HttpServletResponse JavaDoc;
8
9
10 /**
11  * Interface representing an object that maps requests.
12  */

13 public interface RequestMapper {
14     
15     /**
16      * Handle an incoming request.
17      *
18      * RequestMappers are not required to handle all requests and are instead
19      * encouraged to inspect the request and only take action when it
20      * wants to. If action is taken then the RequestMapper should return a
21      * boolean "true" value indicating that no further action is required.
22      */

23     public boolean handleRequest(HttpServletRequest JavaDoc req, HttpServletResponse JavaDoc res)
24         throws ServletException JavaDoc, IOException JavaDoc;
25     
26 }
27
Popular Tags