urlconstructor.java

来自「wiki建站资源 java编写的 很好用」· Java 代码 · 共 48 行

JAVA
48
字号
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 + =
减小字号Ctrl + -
显示快捷键?