Class LinkTool
java.lang.Object
org.apache.velocity.tools.generic.SafeConfig
org.apache.velocity.tools.generic.LinkTool
org.apache.velocity.tools.view.LinkTool
org.apache.velocity.tools.view.tools.LinkTool
- All Implemented Interfaces:
Cloneable
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServletContext
Deprecated.static final String
Deprecated.private boolean
Deprecated.Deprecated.static final String
Deprecated.static final String
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddQueryData
(String key, Object value) Deprecated.addQueryData
(Map parameters) Deprecated.protected void
configure
(ValueParser parser) Deprecated.Does the actual configuration.Deprecated.Deprecated.getURI()
Deprecated.void
Deprecated.setAbsolute
(String uri) Deprecated.Deprecated.useLinkTool.anchor(Object)
insteadvoid
setAutoIgnoreParameters
(boolean autoIgnore) Deprecated.void
Deprecated.If there is no existing value for this key in the query, it will simply add it and its value to the query.void
Deprecated.If append is false, this simply delegates toLinkTool.setQuery(java.lang.Object)
.setRelative
(String uri) Deprecated.void
setRequest
(HttpServletRequest request) Deprecated.void
setResponse
(HttpServletResponse response) Deprecated.void
setSelfAbsolute
(boolean selfAbsolute) Deprecated.useLinkTool.setForceRelative(boolean)
as reversed replacementvoid
setSelfIncludeParameters
(boolean selfParams) Deprecated.useLinkTool.setIncludeRequestParams(boolean)
insteadDeprecated.void
setXhtml
(boolean useXhtml) 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
-
Field Details
-
SELF_ABSOLUTE_KEY
Deprecated.- See Also:
-
SELF_INCLUDE_PARAMETERS_KEY
Deprecated.- See Also:
-
AUTO_IGNORE_PARAMETERS_KEY
Deprecated.- See Also:
-
application
Deprecated. -
parametersToIgnore
Deprecated. -
autoIgnore
private boolean autoIgnoreDeprecated.
-
-
Constructor Details
-
LinkTool
public LinkTool()Deprecated.
-
-
Method Details
-
configure
Deprecated.Description copied from class:SafeConfig
Does the actual configuration. This is protected, so subclasses may share the same ValueParser and call configure at any time, while preventing templates from doing so when configure(Map) is locked. -
init
Deprecated. -
setXhtml
Deprecated. -
setSelfAbsolute
Deprecated.useLinkTool.setForceRelative(boolean)
as reversed replacement -
setSelfIncludeParameters
Deprecated.useLinkTool.setIncludeRequestParams(boolean)
instead -
setAutoIgnoreParameters
Deprecated. -
setRequest
Deprecated. -
setResponse
Deprecated. -
setAnchor
Deprecated.useLinkTool.anchor(Object)
instead -
setRelative
Deprecated. -
setAbsolute
Deprecated. -
setURI
Deprecated. -
getURI
Deprecated. -
addQueryData
Deprecated. -
addQueryData
Deprecated. -
getQueryData
Deprecated. -
encodeURL
Deprecated. -
addIgnore
Deprecated.If you do use this, then you must useaddAllParameters()
and not the replacements for it, or these will not be honored. -
addAllParameters
-
setParam
Deprecated.Description copied from class:LinkTool
If there is no existing value for this key in the query, it will simply add it and its value to the query. If the key already is present in the query and append is true, this will add the specified value to those already under that key. IfLinkTool.appendParams
is false, this will override the existing values with the specified new value. -
setParams
Deprecated.Description copied from class:LinkTool
If append is false, this simply delegates toLinkTool.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 useLinkTool.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.
-
LinkTool