01: package org.apache.roller.ui.rendering;
02:
03: import java.io.IOException;
04: import javax.servlet.ServletException;
05: import javax.servlet.http.HttpServletRequest;
06: import javax.servlet.http.HttpServletResponse;
07:
08: /**
09: * Interface representing an object that maps requests.
10: */
11: public interface RequestMapper {
12:
13: /**
14: * Handle an incoming request.
15: *
16: * RequestMappers are not required to handle all requests and are instead
17: * encouraged to inspect the request and only take action when it
18: * wants to. If action is taken then the RequestMapper should return a
19: * boolean "true" value indicating that no further action is required.
20: */
21: public boolean handleRequest(HttpServletRequest req,
22: HttpServletResponse res) throws ServletException,
23: IOException;
24:
25: }
|