| org.apache.tapestry.Link
All known Subclasses: org.apache.tapestry.internal.services.LinkImpl,
Link | public interface Link (Code) | | A link is the Tapestry representation of a URL or URI that triggers dynamic behavior. This link
is in two parts: a path portion and a set of query parameters. A request for a link will
ultimately be recognized by a
Dispatcher .
Query parameter values are kept separate from the path portion to support encoding those values
into hidden form fields (where appropriate).
|
addParameter | void addParameter(String parameterName, String value)(Code) | | Adds a parameter value. The value will be added, as is, to the URL. In many cases, the value
should be URL encoded via
URLCodec .
Parameters: parameterName - the name of the parameter to store Parameters: value - the value to store throws: IllegalArgumentException - if the link already has a parameter with the given name |
getParameterNames | List<String> getParameterNames()(Code) | | The names of any additional query parameters for the URI. Query parameters store less regular
or less often used values that can not be expressed in the path. They also are used to store,
or link to, persistent state.
list of query parameter names, is alphabetical order |
getParameterValue | String getParameterValue(String name)(Code) | | Returns the value of a specifically named query parameter, or null if no such query parameter
is stored in the link.
|
toRedirectURI | String toRedirectURI()(Code) | | Returns the link as a redirect URI. The URI includes any query parameters.
|
toURI | String toURI()(Code) | | Returns the URI portion of the link. When the link is created for a form, this will not
include query parameters. This is the same value returned from toString().
the URI, ready to be added as an element attribute |
|
|