1 33 package net.myvietnam.mvncore.web; 34 35 import javax.servlet.http.HttpServletRequest ; 36 import javax.servlet.http.HttpServletResponse ; 37 38 public interface URLResolver { 39 40 public static final int RENDER_URL = 0; 41 public static final int ACTION_URL = 1; 42 public static final int UPLOAD_URL = 2; 43 44 public boolean isSupportServlet(); 45 46 public boolean isSupportPortlet(); 47 48 public String encodeURL(HttpServletRequest request, HttpServletResponse response, String url); 49 50 public String encodeURL(HttpServletRequest request, HttpServletResponse response, String url, int option); 51 52 public String encodeURL(HttpServletRequest request, HttpServletResponse response, String url, int option, String mode); 53 54 public String decodeAction(GenericRequest request, GenericResponse response); 55 56 public String generateFormAction(HttpServletRequest request, HttpServletResponse response, String url); 57 58 public String getActionParam(); 59 60 } 61 | Popular Tags |