📄 requestdispatcherwrapper.java
字号:
//// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . i n j a h i a w e t r u s t . . .////////package org.jahia.services.applications;import java.util.*;import javax.servlet.*;import javax.servlet.http.*;import org.jahia.utils.*;/** * This wrapper is used to detect dispatching operations by the applications. * * @author Khue Nguyen <a href="mailto:khue@jahia.com">khue@jahia.com</a> * @version 1.0 */public class RequestDispatcherWrapper implements RequestDispatcher { private static final String CLASS_NAME = RequestDispatcherWrapper.class.getName(); private RequestDispatcher requestDispatcher; //-------------------------------------------------------------------------- /** * * @param RequestDispatcher requestDispatcher */ public RequestDispatcherWrapper(RequestDispatcher requestDispatcher) { JahiaConsole.println(CLASS_NAME, "Creating a new wrapper."); this.requestDispatcher = requestDispatcher; } //-------------------------------------------------------------------------- public void forward(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException { JahiaConsole.println(CLASS_NAME+".forward()", "Request URI : " + ((ServletIncludeRequestWrapper)request).getRequestURI() ); this.requestDispatcher.forward(request,response); } //-------------------------------------------------------------------------- public void include(ServletRequest request,ServletResponse response) throws ServletException, java.io.IOException { JahiaConsole.println(CLASS_NAME+".include()", "Request URI : " + ((ServletIncludeRequestWrapper)request).getRequestURI() ); this.requestDispatcher.include(request,response); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -