Method Summary |
|
public TemplateLink | addPathInfo(ParameterParser pp) Adds a name=value pair for every entry in a ParameterParser
object to the path_info string.
Parameters: pp - A ParameterParser. |
public TemplateLink | addPathInfo(String name, Object value) Adds a name=value pair to the path_info string.
Parameters: name - A String with the name to add. Parameters: value - An Object with the value to add. |
public TemplateLink | addPathInfo(String name, String value) Adds a name=value pair to the path_info string.
Parameters: name - A String with the name to add. Parameters: value - A String with the value to add. |
public TemplateLink | addPathInfo(String name, double value) Adds a name=value pair to the path_info string.
Parameters: name - A String with the name to add. Parameters: value - A double with the value to add. |
public TemplateLink | addPathInfo(String name, int value) Adds a name=value pair to the path_info string.
Parameters: name - A String with the name to add. Parameters: value - An int with the value to add. |
public TemplateLink | addPathInfo(String name, long value) Adds a name=value pair to the path_info string.
Parameters: name - A String with the name to add. Parameters: value - A long with the value to add. |
public TemplateLink | addQueryData(String name, Object value) Adds a name=value pair to the query string.
Parameters: name - A String with the name to add. Parameters: value - An Object with the value to add. |
public TemplateLink | addQueryData(String name, String value) Adds a name=value pair to the query string.
Parameters: name - A String with the name to add. Parameters: value - A String with the value to add. |
public TemplateLink | addQueryData(String name, double value) Adds a name=value pair to the query string.
Parameters: name - A String with the name to add. Parameters: value - A double with the value to add. |
public TemplateLink | addQueryData(String name, int value) Adds a name=value pair to the query string.
Parameters: name - A String with the name to add. Parameters: value - An int with the value to add. |
public TemplateLink | addQueryData(String name, long value) Adds a name=value pair to the query string.
Parameters: name - A String with the name to add. Parameters: value - A long with the value to add. |
public TemplateLink | addQueryData(ParameterParser pp) Adds a name=value pair for every entry in a ParameterParser
object to the query string.
Parameters: pp - A ParameterParser. |
public String | getAbsoluteLink() Builds the URL with all of the data URL-encoded as well as
encoded using HttpServletResponse.encodeUrl(). |
public String | getAbsoluteURI() Returns the absolute URI leaving the source intact. |
public String | getLink() Returns the URI. |
public String | getPage() Gets the template variable used by the Template Service. |
public String | getReference() Returns the current reference anchor. |
public String | getRelativeLink() Builds the URL with all of the data URL-encoded as well as
encoded using HttpServletResponse.encodeUrl(). |
public String | getRelativeURI() Returns the relative URI leaving the source intact. |
public String | getURI() Returns the relative URI leaving the source intact. |
public void | init(Object data) This will initialise a TemplateLink object that was
constructed with the default constructor (ApplicationTool
method). |
public void | refresh() |
public TemplateLink | removePathInfo() Removes all the path info elements. |
public TemplateLink | removePathInfo(String name) Removes a name=value pair from the path info.
Parameters: name - A String with the name to be removed. |
public TemplateLink | removeQueryData() Removes all the query string elements. |
public TemplateLink | removeQueryData(String name) Removes a name=value pair from the query string.
Parameters: name - A String with the name to be removed. |
public TemplateLink | setAction(String action) Sets the action= value for this URL.
By default it adds the information to the path_info instead
of the query data.
Parameters: action - A String with the action value. |
public TemplateLink | setActionEvent(String action, String event) Sets the action= and eventSubmit= values for this URL.
By default it adds the information to the path_info instead
of the query data.
Parameters: action - A String with the action value. Parameters: event - A string with the event name. |
public TemplateLink | setEncodeURLOff() This will turn off the execution of res.encodeURL()
by making res == null. |
public TemplateLink | setEvent(String action) Sets the eventSubmit_= value for this URL.
By default it adds the information to the path_info instead
of the query data.
Parameters: action - A String with the event value. |
public TemplateLink | setPage(String template) Sets the template variable used by the Template Service.
Parameters: template - A String with the template name. |
public TemplateLink | setReference(String reference) Sets a reference anchor (#ref).
Parameters: reference - A String containing the reference. |
public TemplateLink | setScreen(String screen) Sets the screen= value for this URL.
By default it adds the information to the path_info instead
of the query data.
Parameters: screen - A String with the screen value. |
public String | toString() Same as getLink(). |