|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.tools.generic.SafeConfig
org.apache.velocity.tools.generic.LinkTool
org.apache.velocity.tools.view.LinkTool
org.apache.velocity.tools.view.tools.LinkTool
LinkTool
@Deprecated public class LinkTool
| Field Summary | |
|---|---|
protected ServletContext |
application
Deprecated. |
static String |
AUTO_IGNORE_PARAMETERS_KEY
Deprecated. |
static String |
SELF_ABSOLUTE_KEY
Deprecated. |
static String |
SELF_INCLUDE_PARAMETERS_KEY
Deprecated. |
| Fields inherited from class org.apache.velocity.tools.view.LinkTool |
|---|
INCLUDE_REQUEST_PARAMS_KEY, includeRequestParams, request, response |
| Fields inherited from class org.apache.velocity.tools.generic.LinkTool |
|---|
APPEND_PARAMS_KEY, appendParams, charset, CHARSET_KEY, DEFAULT_CHARSET, DEFAULT_SCHEME, FORCE_RELATIVE_KEY, forceRelative, fragment, FRAGMENT_KEY, host, HOST_KEY, HTML_QUERY_DELIMITER, LOG, opaque, path, PATH_KEY, port, PORT_KEY, query, QUERY_KEY, queryDelim, scheme, SCHEME_KEY, SECURE_SCHEME, self, URI_KEY, user, USER_KEY, XHTML_MODE_KEY, XHTML_QUERY_DELIMITER |
| Fields inherited from class org.apache.velocity.tools.generic.SafeConfig |
|---|
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY |
| Constructor Summary | |
|---|---|
LinkTool()
Deprecated. |
|
| Methods inherited from class org.apache.velocity.tools.view.LinkTool |
|---|
addMissingRequestParams, addRequestParams, addRequestParamsExcept, getContextPath, getContextURL, getRequestPath, isPathChanged, setFromRequest, setIncludeRequestParams, toString |
| Methods inherited from class org.apache.velocity.tools.generic.LinkTool |
|---|
absolute, absolute, anchor, append, append, appendAsArray, appendPath, appendQuery, combinePath, combineQuery, createURI, debug, debug, decode, decodeQueryPercents, directory, duplicate, duplicate, encode, equals, getAnchor, getAppendParams, getBaseRef, getCharacterEncoding, getDirectory, getFile, getHost, getParams, getPath, getPort, getQuery, getRoot, getScheme, getSelf, getUri, getUser, handleParamsBoolean, hashCode, host, insecure, isAbsolute, isOpaque, isRelative, isSecure, isXHTML, normalizeQuery, param, params, parseQuery, parseQuery, path, port, query, relative, relative, remove, removeParam, root, scheme, secure, set, setAppendParams, setCharacterEncoding, setForceRelative, setFragment, setFromURI, setHost, setPath, setPort, setQuery, setScheme, setUserInfo, setXHTML, toQuery, toQuery, toURI, uri, user |
| Methods inherited from class org.apache.velocity.tools.generic.SafeConfig |
|---|
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final String SELF_ABSOLUTE_KEY
@Deprecated public static final String SELF_INCLUDE_PARAMETERS_KEY
@Deprecated public static final String AUTO_IGNORE_PARAMETERS_KEY
@Deprecated protected ServletContext application
| Constructor Detail |
|---|
public LinkTool()
| Method Detail |
|---|
protected void configure(ValueParser parser)
SafeConfig
configure in class LinkTool@Deprecated public void init(Object obj)
@Deprecated public void setXhtml(boolean useXhtml)
@Deprecated public void setSelfAbsolute(boolean selfAbsolute)
LinkTool.setForceRelative(boolean) as reversed
replacement
@Deprecated public void setSelfIncludeParameters(boolean selfParams)
LinkTool.setIncludeRequestParams(boolean) instead
@Deprecated public void setAutoIgnoreParameters(boolean autoIgnore)
@Deprecated public void setRequest(HttpServletRequest request)
@Deprecated public void setResponse(HttpServletResponse response)
@Deprecated public LinkTool setAnchor(String anchor)
LinkTool.anchor(Object) instead
@Deprecated public LinkTool setRelative(String uri)
LinkTool.relative(Object)
@Deprecated public LinkTool setAbsolute(String uri)
LinkTool.absolute(Object)
@Deprecated public LinkTool setURI(String uri)
LinkTool.uri(Object)
@Deprecated public String getURI()
LinkTool.getPath()
@Deprecated
public LinkTool addQueryData(String key,
Object value)
LinkTool.append(Object,Object)
@Deprecated public LinkTool addQueryData(Map parameters)
LinkTool.params(Object)
@Deprecated public String getQueryData()
LinkTool.getQuery()
@Deprecated public String encodeURL(String url)
LinkTool.encode(Object)
@Deprecated public LinkTool addIgnore(String parameterName)
LinkTool.addRequestParams(String...)
or LinkTool.addRequestParamsExcept(String...)
or LinkTool.addMissingRequestParams(String...)
addAllParameters()
and not the replacements for it, or these will not be honored.
@Deprecated public LinkTool addAllParameters()
LinkTool.addRequestParams(String...)
or LinkTool.addRequestParamsExcept(String...)
or LinkTool.addMissingRequestParams(String...)
public void setParam(Object key,
Object value,
boolean append)
LinkToolLinkTool.appendParams is
false, this will override the existing values with the
specified new value.
setParam in class LinkTool
public void setParams(Object obj,
boolean append)
LinkToolLinkTool.setQuery(java.lang.Object).
Otherwise, if the specified object is null, it does nothing. If the object
is not a Map, it will turn it into a String and use LinkTool.parseQuery(java.lang.String) to
parse it. Once it is a Map, it will iterate through the entries appending
each key/value to the current query data.
setParams in class LinkTool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||