File Source: urlfunctions.java
/*
P/P * Method: net.sourceforge.pebble.web.tagext.UrlFunctions__static_init
*/
1 package net.sourceforge.pebble.web.tagext;
2
3 import net.sourceforge.pebble.util.StringUtils;
4 import net.sourceforge.pebble.util.UrlRewriter;
5 /**
6 * Used from jsp taglib url.tld
7 * @author Olaf Kock
8 * @see UrlRewriter
9 */
/*
P/P * Method: void net.sourceforge.pebble.web.tagext.UrlFunctions()
*/
10 public class UrlFunctions {
11 public static String rewrite(String url) {
12 // if you'd like to see the decorated urls highlighted,
13 // a html injection is commented. This wouldn't work
14 // for all cases, but gives an idea where rewriting an
15 // url is done (and has succeeded)
/*
P/P * Method: String rewrite(String)
*
* Preconditions:
* net/sourceforge/pebble/util/UrlRewriter.x != null
*
* Postconditions:
* init'ed(return_value)
*/
16 return UrlRewriter.doRewrite(url); // + "\" style=\"background-color:blue";
17 };
18
19 public static String escape(String url) {
/*
P/P * Method: String escape(String)
*
* Postconditions:
* init'ed(return_value)
*/
20 return StringUtils.transformHTML(url);
21 };
22 }
SofCheck Inspector Build Version : 2.22510
| urlfunctions.java |
2010-Jun-25 19:40:34 |
| urlfunctions.class |
2010-Jul-19 20:23:38 |