1 5 6 package org.exoplatform.services.wsrp.testConsumer; 7 8 9 import java.net.URLEncoder ; 10 import java.net.URLDecoder ; 11 import org.exoplatform.services.wsrp.WSRPConstants; 12 import org.exoplatform.services.wsrp.exceptions.WSRPException; 13 14 20 21 public class TestURLRewriter extends BaseTest { 22 23 String s = "wsrp_rewrite?wsrp-urlType=render&wsrp-mode=wsrp:help&" + 24 "wsrp-navigationalState=rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAh3CAAAAAsAAAAAeA**" + 25 "&wsrp-windowState=wsrp:normal&wsrp-secureURL=false/wsrp_rewrite"; 26 27 public void testRewrite() throws WSRPException { 28 System.out.println("Rewritten : " + urlRewriter.rewriteURLs("baseURL", s)); 29 } 31 32 } | Popular Tags |