public class ShortViewURLConstructor extends ShortURLConstructor
m_urlPrefix, PROP_PREFIXm_engine, m_pathPrefix| Constructor and Description |
|---|
ShortViewURLConstructor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getForwardPage(javax.servlet.http.HttpServletRequest request)
Since we're only called from WikiServlet, where we get the VIEW requests, we can safely return this.
|
void |
initialize(Engine engine,
java.util.Properties properties) |
java.lang.String |
makeURL(java.lang.String context,
java.lang.String name,
java.lang.String parameters)
Constructs the URL with a bunch of parameters.
|
parsePagedoReplacement, getURLPatternclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparsePageFromURLpublic ShortViewURLConstructor()
public void initialize(Engine engine, java.util.Properties properties)
initialize in interface Initializableinitialize in class ShortURLConstructorpublic java.lang.String makeURL(java.lang.String context, java.lang.String name, java.lang.String parameters)
makeURL in interface URLConstructormakeURL in class ShortURLConstructorcontext - The request context (@see WikiContext) that you want the URL forname - The page name (or in case of WikiContext.NONE, the auxiliary JSP page
or resource you want to point at). This must be URL encoded. Null is NOT safe.parameters - If null or empty, no parameters are added.
An URL parameter string (these must be URL-encoded, and separated with &)public java.lang.String getForwardPage(javax.servlet.http.HttpServletRequest request)
getForwardPage in interface URLConstructorgetForwardPage in class ShortURLConstructorrequest - The HTTP Request that was used to end up in this page.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.