* @param pos the position in the block were inserting stuff at.
* @return the new position in the block.
*/
protected int insertTokens (HtmlBlock block, int pos) {
Config config = con.getProxy ().getConfig ();
block.insertToken (new Token
(config.getProperty
(getClass ().getName (),
"prefix",
PREFIX)),
pos++);
if (config.getProperty (getClass ().getName (),
"unfilteredlink",
"true").toLowerCase ().equals ("true")) {
Tag a = new Tag ("A");
try {
URL url = new URL (request.getRequestURI ());
a.addArg ("HREF", getHref (url));
block.insertToken (new Token (a), pos++);
block.insertToken (new Token
(config.getProperty (getClass ().getName (),
"link",
LINK)),
pos++);
Tag slasha = new Tag ("/A");
block.insertToken (new Token (slasha), pos++);
} catch (MalformedURLException e) {
// ignore
}
}
block.insertToken (new Token (config.getProperty
(getClass ().getName (),
"postfix",
POSTFIX)),
pos++);
return pos;