class UrlRewriteConf extends UrlRewriteFilter {
    private static final String URL_REWRITE = "classpath:conf/urlrewrite.xml";

    //注入urlrewrite配置文件
    @Value(URL_REWRITE)
    private Resource resource;

    //重写配置文件加载方式
    protected void loadUrlRewriter(FilterConfig filterConfig) throws ServletException {<FILL_FUNCTION_BODY>}
}

        try {
            //将Resource对象转换成Conf对象
            Conf conf = new Conf(filterConfig.getServletContext(), resource.getInputStream(), resource.getFilename(), "@@traceability@@");
            checkConf(conf);
        } catch (IOException ex) {
            throw new ServletException("Unable to load URL rewrite configuration file from " + URL_REWRITE, ex);
        }
    
<methods>public void <init>() ,public void destroy() ,public void destroyActual() ,public void doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) throws java.io.IOException, javax.servlet.ServletException,public int getConfReloadCheckInterval() ,public java.util.Date getConfReloadLastCheck() ,public static java.lang.String getFullVersionString() ,public java.lang.String getStatusPath() ,public void init(javax.servlet.FilterConfig) throws javax.servlet.ServletException,public boolean isConfReloadCheckEnabled() ,public boolean isLoaded() ,public boolean isStatusEnabled() ,public boolean isTimeToReloadConf() ,public void reloadConf() <variables>public static final java.lang.String DEFAULT_MOD_REWRITE_STYLE_CONF_PATH,private static final java.lang.String DEFAULT_STATUS_ENABLED_ON_HOSTS,public static final java.lang.String DEFAULT_WEB_CONF_PATH,private static long INITIALISED_TIME,public static final java.lang.String VERSION,private boolean allowConfSwapViaHttp,private long confLastLoad,private org.tuckey.web.filters.urlrewrite.Conf confLastLoaded,private boolean confLoadedFromFile,private java.lang.String confPath,private boolean confReloadCheckEnabled,private int confReloadCheckInterval,private boolean confReloadInProgress,private long confReloadLastCheck,private javax.servlet.ServletContext context,private static org.tuckey.web.filters.urlrewrite.utils.Log log,private boolean modRewriteStyleConf,private boolean statusEnabled,private java.lang.String statusPath,private org.tuckey.web.filters.urlrewrite.utils.ServerNameMatcher statusServerNameMatcher,private org.tuckey.web.filters.urlrewrite.UrlRewriter urlRewriter