1 33 package net.myvietnam.mvncore.web.impl; 34 35 import javax.servlet.http.HttpServletRequest ; 36 import javax.servlet.http.HttpServletResponse ; 37 38 import net.myvietnam.mvncore.MVNCoreConfig; 39 import net.myvietnam.mvncore.web.*; 40 41 public class URLResolverServletImpl implements URLResolver { 42 43 public boolean isSupportServlet() { 44 return true; 45 } 46 47 public boolean isSupportPortlet() { 48 return false; 49 } 50 51 public String encodeURL(HttpServletRequest request, HttpServletResponse response, String url) { 52 if (MVNCoreConfig.getEnableEncodeURL()) { 53 url = response.encodeURL(url); 54 } 55 return url; 56 } 57 58 public String encodeURL(HttpServletRequest request, HttpServletResponse response, String url, int option) { 59 if (MVNCoreConfig.getEnableEncodeURL()) { 60 url = response.encodeURL(url); 61 } 62 return url; 63 } 64 65 public String encodeURL(HttpServletRequest request, HttpServletResponse response, String url, int option, String mode) { 66 if (MVNCoreConfig.getEnableEncodeURL()) { 68 url = response.encodeURL(url); 69 } 70 return url; 71 } 72 73 public String decodeAction(GenericRequest request, GenericResponse response) { 74 return ""; 75 } 76 77 public String generateFormAction(HttpServletRequest request, HttpServletResponse response, String url) { 78 return ""; 79 } 80 81 public String getActionParam() { 82 return ""; 83 } 84 85 } 86 | Popular Tags |