1 18 package org.apache.beehive.netui.core.urls; 19 20 import javax.servlet.ServletContext ; 21 import javax.servlet.ServletRequest ; 22 import javax.servlet.ServletResponse ; 23 24 25 28 public abstract class URLRewriter 29 { 30 35 private boolean _allowOtherRewriters = true; 36 37 public void setAllowOtherRewriters( boolean allowOtherRewriters ) 38 { 39 _allowOtherRewriters = allowOtherRewriters; 40 } 41 42 public boolean allowOtherRewriters() 43 { 44 return _allowOtherRewriters; 45 } 46 47 56 public abstract String getNamePrefix( ServletContext servletContext, ServletRequest request, String name ); 57 58 72 public abstract void rewriteURL( ServletContext servletContext, ServletRequest request, 73 ServletResponse response, MutableURI url, URLType type, 74 boolean needsToBeSecure ); 75 76 81 public boolean allowParamsOnFormAction( ServletContext servletContext, ServletRequest request ) 82 { 83 return false; 84 } 85 } 86 | Popular Tags |