类 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
- 所有已实现的接口:
Cloneable
已过时。
-
字段概要
字段修饰符和类型字段说明protected ServletContext
已过时。static final String
已过时。private boolean
已过时。已过时。static final String
已过时。static final String
已过时。从类继承的字段 org.apache.velocity.tools.view.LinkTool
INCLUDE_REQUEST_PARAMS_KEY, includeRequestParams, request, response
从类继承的字段 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
从类继承的字段 org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addQueryData
(String key, Object value) 已过时。addQueryData
(Map parameters) 已过时。protected void
configure
(ValueParser parser) 已过时。Does the actual configuration.已过时。已过时。getURI()
已过时。void
已过时。setAbsolute
(String uri) 已过时。已过时。useLinkTool.anchor(Object)
insteadvoid
setAutoIgnoreParameters
(boolean autoIgnore) 已过时。void
已过时。If there is no existing value for this key in the query, it will simply add it and its value to the query.void
已过时。If append is false, this simply delegates toLinkTool.setQuery(java.lang.Object)
.setRelative
(String uri) 已过时。void
setRequest
(HttpServletRequest request) 已过时。void
setResponse
(HttpServletResponse response) 已过时。void
setSelfAbsolute
(boolean selfAbsolute) 已过时。useLinkTool.setForceRelative(boolean)
as reversed replacementvoid
setSelfIncludeParameters
(boolean selfParams) 已过时。useLinkTool.setIncludeRequestParams(boolean)
instead已过时。void
setXhtml
(boolean useXhtml) 已过时。从类继承的方法 org.apache.velocity.tools.view.LinkTool
addMissingRequestParams, addRequestParams, addRequestParamsExcept, getContextPath, getContextURL, getRequestPath, isPathChanged, setFromRequest, setIncludeRequestParams, toString
从类继承的方法 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
从类继承的方法 org.apache.velocity.tools.generic.SafeConfig
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
-
字段详细资料
-
构造器详细资料
-
LinkTool
public LinkTool()已过时。
-
-
方法详细资料
-
configure
已过时。从类复制的说明: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
已过时。 -
setXhtml
已过时。 -
setSelfAbsolute
已过时。useLinkTool.setForceRelative(boolean)
as reversed replacement -
setSelfIncludeParameters
已过时。useLinkTool.setIncludeRequestParams(boolean)
instead -
setAutoIgnoreParameters
已过时。 -
setRequest
已过时。 -
setResponse
已过时。 -
setAnchor
已过时。useLinkTool.anchor(Object)
instead -
setRelative
已过时。 -
setAbsolute
已过时。 -
setURI
已过时。 -
getURI
已过时。 -
addQueryData
已过时。 -
addQueryData
已过时。 -
getQueryData
已过时。 -
encodeURL
已过时。 -
addIgnore
已过时。If you do use this, then you must useaddAllParameters()
and not the replacements for it, or these will not be honored. -
addAllParameters
-
setParam
已过时。从类复制的说明: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
已过时。从类复制的说明: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