| java.lang.Object com.ecyrd.jspwiki.url.DefaultURLConstructor
All known Subclasses: com.ecyrd.jspwiki.url.PortalURLConstructor,
DefaultURLConstructor | public class DefaultURLConstructor implements URLConstructor(Code) | | |
Method Summary | |
final protected String | doReplacement(String baseptrn, String name, boolean absolute) | public String | getForwardPage(HttpServletRequest request) This method is not needed for the DefaultURLConstructor. | public static String | getURLPattern(String context, String name) Returns the pattern used for each URL style. | public void | initialize(WikiEngine engine, Properties properties) | public String | makeURL(String context, String name, boolean absolute, String parameters) Constructs the URL with a bunch of parameters. | public String | parsePage(String context, HttpServletRequest request, String encoding) Should parse the "page" parameter from the actual
request. | public static String | parsePageFromURL(HttpServletRequest request, String encoding) Takes the name of the page from the request URI.
The initial slash is also removed. |
m_useRelativeURLStyle | protected boolean m_useRelativeURLStyle(Code) | | Are URL styles relative or absolute?
|
getForwardPage | public String getForwardPage(HttpServletRequest request)(Code) | | This method is not needed for the DefaultURLConstructor.
author: jalkanen |
getURLPattern | public static String getURLPattern(String context, String name)(Code) | | Returns the pattern used for each URL style.
Parameters: context - Parameters: name - A pattern for replacement. |
makeURL | public String makeURL(String context, String name, boolean absolute, String parameters)(Code) | | Constructs the URL with a bunch of parameters.
Parameters: parameters - If null or empty, no parameters are added. |
|
|