|
|||||||||
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 javax.servlet.ServletContext |
application
Deprecated. |
static java.lang.String |
AUTO_IGNORE_PARAMETERS_KEY
Deprecated. |
private boolean |
autoIgnore
Deprecated. |
private java.util.HashSet<java.lang.String> |
parametersToIgnore
Deprecated. |
static java.lang.String |
SELF_ABSOLUTE_KEY
Deprecated. |
static java.lang.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. |
Method Summary | |
---|---|
LinkTool |
addAllParameters()
Deprecated. use LinkTool.addRequestParams(String...)
or LinkTool.addRequestParamsExcept(String...)
or LinkTool.addMissingRequestParams(String...) |
LinkTool |
addIgnore(java.lang.String parameterName)
Deprecated. use LinkTool.addRequestParams(String...)
or LinkTool.addRequestParamsExcept(String...)
or LinkTool.addMissingRequestParams(String...) |
LinkTool |
addQueryData(java.util.Map parameters)
Deprecated. use LinkTool.params(Object) |
LinkTool |
addQueryData(java.lang.String key,
java.lang.Object value)
Deprecated. use LinkTool.append(Object,Object) |
protected void |
configure(ValueParser parser)
Deprecated. Does the actual configuration. |
java.lang.String |
encodeURL(java.lang.String url)
Deprecated. use LinkTool.encode(Object) |
java.lang.String |
getQueryData()
Deprecated. use LinkTool.getQuery() |
java.lang.String |
getURI()
Deprecated. use LinkTool.getPath() |
void |
init(java.lang.Object obj)
Deprecated. |
LinkTool |
setAbsolute(java.lang.String uri)
Deprecated. use LinkTool.absolute(Object) |
LinkTool |
setAnchor(java.lang.String anchor)
Deprecated. use LinkTool.anchor(Object) instead |
void |
setAutoIgnoreParameters(boolean autoIgnore)
Deprecated. |
void |
setParam(java.lang.Object key,
java.lang.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(java.lang.Object obj,
boolean append)
Deprecated. If append is false, this simply delegates to LinkTool.setQuery(java.lang.Object) . |
LinkTool |
setRelative(java.lang.String uri)
Deprecated. use LinkTool.relative(Object) |
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(java.lang.String uri)
Deprecated. use LinkTool.uri(Object) |
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final java.lang.String SELF_ABSOLUTE_KEY
@Deprecated public static final java.lang.String SELF_INCLUDE_PARAMETERS_KEY
@Deprecated public static final java.lang.String AUTO_IGNORE_PARAMETERS_KEY
@Deprecated protected javax.servlet.ServletContext application
private java.util.HashSet<java.lang.String> parametersToIgnore
private boolean autoIgnore
Constructor Detail |
---|
public LinkTool()
Method Detail |
---|
protected void configure(ValueParser parser)
SafeConfig
configure
in class LinkTool
@Deprecated public void init(java.lang.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(java.lang.String anchor)
LinkTool.anchor(Object)
instead
@Deprecated public LinkTool setRelative(java.lang.String uri)
LinkTool.relative(Object)
@Deprecated public LinkTool setAbsolute(java.lang.String uri)
LinkTool.absolute(Object)
@Deprecated public LinkTool setURI(java.lang.String uri)
LinkTool.uri(Object)
@Deprecated public java.lang.String getURI()
LinkTool.getPath()
@Deprecated public LinkTool addQueryData(java.lang.String key, java.lang.Object value)
LinkTool.append(Object,Object)
@Deprecated public LinkTool addQueryData(java.util.Map parameters)
LinkTool.params(Object)
@Deprecated public java.lang.String getQueryData()
LinkTool.getQuery()
@Deprecated public java.lang.String encodeURL(java.lang.String url)
LinkTool.encode(Object)
@Deprecated public LinkTool addIgnore(java.lang.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(java.lang.Object key, java.lang.Object value, boolean append)
LinkTool
LinkTool.appendParams
is
false, this will override the existing values with the
specified new value.
setParam
in class LinkTool
public void setParams(java.lang.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.
setParams
in class LinkTool
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |