public class ShortViewURLConstructor extends ShortURLConstructor
m_urlPrefix, PROP_PREFIX
m_engine, m_pathPrefix
Constructor and Description |
---|
ShortViewURLConstructor() |
Modifier and Type | Method and Description |
---|---|
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(WikiEngine engine,
Properties properties)
Initializes.
|
String |
makeURL(String context,
String name,
boolean absolute,
String parameters)
Constructs the URL with a bunch of parameters.
|
parsePage
doReplacement, getURLPattern, parsePageFromURL
public ShortViewURLConstructor()
public void initialize(WikiEngine engine, Properties properties)
initialize
in interface URLConstructor
initialize
in class ShortURLConstructor
engine
- The WikiEngine that this URLConstructor belongs toproperties
- Properties used to initializepublic String makeURL(String context, String name, boolean absolute, String parameters)
makeURL
in interface URLConstructor
makeURL
in class ShortURLConstructor
context
- 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.absolute
- True, if you need an absolute URL. False, if both relative and absolute URLs are fine.parameters
- If null or empty, no parameters are added.
An URL parameter string (these must be URL-encoded, and separated with &)public String getForwardPage(javax.servlet.http.HttpServletRequest request)
getForwardPage
in interface URLConstructor
getForwardPage
in class ShortURLConstructor
request
- The HTTP Request that was used to end up in this page.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.