LinkTool
@Deprecated public class LinkTool extends LinkTool
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.ServletContext |
application
Deprecated.
|
static String |
AUTO_IGNORE_PARAMETERS_KEY
Deprecated.
|
static String |
SELF_ABSOLUTE_KEY
Deprecated.
|
static String |
SELF_INCLUDE_PARAMETERS_KEY
Deprecated.
|
INCLUDE_REQUEST_PARAMS_KEY, includeRequestParams, request, response
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
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
Constructor and Description |
---|
LinkTool()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LinkTool |
addAllParameters()
|
LinkTool |
addIgnore(String parameterName)
|
LinkTool |
addQueryData(Map parameters)
Deprecated.
|
LinkTool |
addQueryData(String key,
Object value)
Deprecated.
|
protected void |
configure(ValueParser parser)
Deprecated.
Does the actual configuration.
|
String |
encodeURL(String url)
Deprecated.
|
String |
getQueryData()
Deprecated.
|
String |
getURI()
Deprecated.
|
void |
init(Object obj)
Deprecated.
|
LinkTool |
setAbsolute(String uri)
Deprecated.
|
LinkTool |
setAnchor(String anchor)
Deprecated.
use
LinkTool.anchor(Object) instead |
void |
setAutoIgnoreParameters(boolean autoIgnore)
Deprecated.
|
void |
setParam(Object key,
Object value,
boolean append)
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 |
setParams(Object obj,
boolean append)
Deprecated.
If append is false, this simply delegates to
LinkTool.setQuery(java.lang.Object) . |
LinkTool |
setRelative(String uri)
Deprecated.
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
Deprecated.
|
void |
setSelfAbsolute(boolean selfAbsolute)
Deprecated.
use
LinkTool.setForceRelative(boolean) as reversed
replacement |
void |
setSelfIncludeParameters(boolean selfParams)
Deprecated.
use
LinkTool.setIncludeRequestParams(boolean) instead |
LinkTool |
setURI(String uri)
Deprecated.
|
void |
setXhtml(boolean useXhtml)
Deprecated.
|
addMissingRequestParams, addRequestParams, addRequestParamsExcept, getContextPath, getContextURL, getRequestPath, isPathChanged, setFromRequest, setIncludeRequestParams, toString
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
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
@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 javax.servlet.ServletContext application
protected void configure(ValueParser parser)
SafeConfig
@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(javax.servlet.http.HttpServletRequest request)
@Deprecated public void setResponse(javax.servlet.http.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()
public void setParam(Object key, Object value, boolean append)
LinkTool
LinkTool.appendParams
is
false, this will override the existing values with the
specified new value.public void setParams(Object obj, boolean append)
LinkTool
LinkTool.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.Copyright © 2002–2021 Apache Software Foundation. All rights reserved.