1 /*** 2 * 3 */ 4 package net.trajano.twiff; 5 6 import java.lang.reflect.Method; 7 import javax.servlet.http.HttpServletRequest; 8 9 /*** 10 * These provide lookups for data used by the 11 * {@link net.trajano.twiff.web.ActionServlet}. 12 * 13 * @author Archimedes Trajano 14 */ 15 public interface ActionPageLookup extends PageLookup { 16 /*** 17 * This extracts the action method name from the URL requested in the 18 * servlet request. 19 * 20 * @param request 21 * the servlet request. 22 * @return the action method name. 23 */ 24 String getActionMethodName(HttpServletRequest request); 25 26 /*** 27 * This extracts the action method from the URL requested in the servlet 28 * request. 29 * 30 * @param request 31 * the servlet request. 32 * @return the action method name. 33 * @throws NoSuchMethodException 34 * the page bean class method does not exist. 35 * @throws SecurityException 36 * the page bean class method is not public. 37 * @throws ClassNotFoundException 38 * the page bean class name does not exist. 39 */ 40 Method getActionMethod(HttpServletRequest request) throws NoSuchMethodException, SecurityException, ClassNotFoundException; 41 }