public HttpServletRequest requestWrapper(HttpServletRequest request) { if (open && isPostMethod(request)) { return new MultipleReadServletRequest(request); } return request; }
private void initWebContext(ServletRequest request, ServletResponse response) { WebContext webContext = tinyFilterHandler.getContext(); webContext.setRequest((HttpServletRequest) request); webContext.setResponse((HttpServletResponse) response); }
private void initWebContext(ServletRequest request, ServletResponse response) { WebContext webContext=hander.getContext(); webContext.setRequest((HttpServletRequest)request); webContext.setResponse((HttpServletResponse)response); }
protected void add(String key, String value) { webContext.put(key, value); } };
public WebContext wrapContext(WebContext wrappedContext) { WebContext context=getAlreadyWrappedContext(wrappedContext); initContext(context); return context; }
/** * 销毁tiny-processors */ private void destoryTinyProcessors() { tinyProcessorManager.destoryTinyResources(); tinyProcessorManager = null; }
public void destroy() { destoryTinyProcessors(); destoryTinyFilters(); wrapper = null; }
public void initTinyFilter() { //获取 if (xmlNode != null) { initParam(xmlNode); initPattern(xmlNode); } }
/** * 加载节点配置信息,存入对象中 * * @param xmlNode */ public void init() { if (xmlNode != null) { initParam(xmlNode); initPattern(xmlNode); } }
public void process(String urlString, WebContext context) throws ServletException, IOException { reallyProcess(urlString, context); }
public void destroy() { destroyTinyProcessors(); destroyTinyFilters(); }
public void init(TinyProcessorConfig tinyProcessorConfig) throws ServletException { this.tinyProcessorConfig = tinyProcessorConfig; customInit(); }
public void destoryTinyResources() { for (TinyFilter tinyFilter : tinyFilters) { tinyFilter.destroyTinyFilter(); } tinyFilters = null; wrapper = null; }
public void destoryTinyResources() { for (TinyProcessor tinyProcessor : tinyProcessorList) { tinyProcessor.destroy(); } tinyProcessorList = null; processorMap = null; }
public void destoryTinyResources() { for (TinyFilter tinyFilter : tinyFilters) { tinyFilter.destoryTinyFilter(); } configManager = null; processorXmlNodes = null; tinyFilters = null; }
public void destoryTinyResources() { for (TinyProcessor tinyProcessor : tinyProcessorList) { tinyProcessor.destory(); } configManager = null; processorXmlNodes = null; }
public WebContext wrapContext(WebContext wrappedContext) { WebContext context = getAlreadyWrappedContext(wrappedContext); initContext(context); return context; }
/** * 销毁tiny-processors */ private void destroyTinyProcessors() { tinyProcessorManager.destoryTinyResources(); }