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 ServletContextDeprecated.static final StringDeprecated.private booleanDeprecated.Deprecated.static final StringDeprecated.static final StringDeprecated.Fields inherited from class org.apache.velocity.tools.view.LinkTool
INCLUDE_REQUEST_PARAMS_KEY, includeRequestParams, request, responseFields 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_DELIMITERFields 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 voidconfigure(ValueParser parser) Deprecated.Does the actual configuration.Deprecated.Deprecated.getURI()Deprecated.voidDeprecated.setAbsolute(String uri) Deprecated.Deprecated.useLinkTool.anchor(Object)insteadvoidsetAutoIgnoreParameters(boolean autoIgnore) Deprecated.voidDeprecated.If there is no existing value for this key in the query, it will simply add it and its value to the query.voidDeprecated.If append is false, this simply delegates toLinkTool.setQuery(java.lang.Object).setRelative(String uri) Deprecated.voidsetRequest(HttpServletRequest request) Deprecated.voidsetResponse(HttpServletResponse response) Deprecated.voidsetSelfAbsolute(boolean selfAbsolute) Deprecated.useLinkTool.setForceRelative(boolean)as reversed replacementvoidsetSelfIncludeParameters(boolean selfParams) Deprecated.useLinkTool.setIncludeRequestParams(boolean)insteadDeprecated.voidsetXhtml(boolean useXhtml) Deprecated.Methods inherited from class org.apache.velocity.tools.view.LinkTool
addMissingRequestParams, addRequestParams, addRequestParamsExcept, getContextPath, getContextURL, getRequestPath, isPathChanged, setFromRequest, setIncludeRequestParams, toStringMethods 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, userMethods 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:SafeConfigDoes 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:LinkToolIf 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.appendParamsis false, this will override the existing values with the specified new value. -
setParams
Deprecated.Description copied from class:LinkToolIf 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