📄 urlconstructor.java
字号:
package com.ecyrd.jspwiki.url;import java.util.Properties;import java.io.IOException;import javax.servlet.http.HttpServletRequest;import com.ecyrd.jspwiki.WikiEngine;/** * An utility class for creating URLs for different purposes. */public interface URLConstructor{ /** * Initializes. Note that the engine is not fully initialized * at this point, so don't do anything fancy here - use lazy * init, if you have to. */ public void initialize( WikiEngine engine, Properties properties ); /** * Constructs the URL with a bunch of parameters. */ public String makeURL( String context, String name, boolean absolute, String parameters ); /** * Should parse the "page" parameter from the actual * request. */ public String parsePage( String context, HttpServletRequest request, String encoding ) throws IOException; /** * Returns information which JSP page should continue handling * this type of request. * * @param context * @return "Wiki.jsp", "PageInfo.jsp", etc. Just return the name, * JSPWiki will figure out the page. */ public String getForwardPage( HttpServletRequest request );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -