Method Summary |
|
protected void | addPair(List list, String name, String value) |
public EmailLink | addPathInfo(String name, String value) Adds a name=value pair to the path_info string. |
public EmailLink | addPathInfo(String name, Object value) Adds a name=value pair to the path_info string. |
public EmailLink | addPathInfo(String name, double value) Adds a name=value pair to the path_info string. |
public EmailLink | addPathInfo(String name, int value) Adds a name=value pair to the path_info string. |
public EmailLink | addPathInfo(String name, long value) Adds a name=value pair to the path_info string. |
public EmailLink | addPathInfo(String name, boolean value) Adds a name=value pair to the path_info string. |
public void | dispose() Disposes the object by setting its disposed flag. |
public Module | getCurrentModule() |
public EmailLink | getIssueIdLink(Issue issue) |
public String | getScriptName() Gets the server scriptName (/scarab/issues). |
public String | getServerName() Gets the server name. |
public int | getServerPort() Gets the server port. |
public String | getServerScheme() Gets the server scheme (HTTP or HTTPS). |
public boolean | hasPathInfo() Does this URI have path info. |
public void | init(Object obj) |
public boolean | isDisposed() Checks whether the object is disposed. |
public EmailLink | omitModule() Causes the link to not include the module id. |
public void | recycle() Recycles the object by removing its disposed flag. |
public void | refresh() |
protected void | removePairByName(List pairs, String name) Helper method to remove one or more pairs by its name (ie key). |
public void | removePathInfo() Removes all the path info elements. |
public void | removePathInfo(String name) Removes a name=value pair from the path info. |
protected String | renderPairs(List pairs, char pairSep, char keyValSep) This method takes a List of key/value arrays and converts it
into a URL encoded key/value pair format with the appropriate
separator.
a String to which the pairs are written to. Parameters: pairs - A List of key/value arrays. Parameters: pairSep - the character to use as a separator between pairs.For example for a query-like rendering it would be '&'. Parameters: keyValSep - the character to use as a separator betweenkey and value. |
protected String | renderPathInfo(List pairs) This method takes a Vector of key/value arrays and writes it to the
supplied StringBuffer as encoded path info.
Parameters: pairs - A Vector of key/value arrays. |
public EmailLink | 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 void | setCurrentModule(Module cM) |
public EmailLink | setPage(String t) Sets the template variable used by the Template Service. |
public EmailLink | setPathInfo(String key, String value) |
public String | toString() Builds the URL with all of the data URL-encoded as well as
encoded using HttpServletResponse.encodeUrl(). |