You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2007/10/16 11:19:54 UTC

svn commit: r585086 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java

Author: knopp
Date: Tue Oct 16 02:19:50 2007
New Revision: 585086

URL: http://svn.apache.org/viewvc?rev=585086&view=rev
Log:
- is allowed in component name, so I've the behviors shortcuts to x* (because the ajax links examples were broken)

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java?rev=585086&r1=585085&r2=585086&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java Tue Oct 16 02:19:50 2007
@@ -295,19 +295,19 @@
 	protected CharSequence shortenUrl(CharSequence queryString)
 	{
 		queryString = Strings.replaceAll(queryString,
-				WebRequestCodingStrategy.BEHAVIOR_ID_PARAMETER_NAME + "=", "1-");
+				WebRequestCodingStrategy.BEHAVIOR_ID_PARAMETER_NAME + "=", "1*");
 		queryString = Strings.replaceAll(queryString,
-				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IRedirectListener", "2-");
+				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IRedirectListener", "2*");
 		queryString = Strings.replaceAll(queryString,
-				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IFormSubmitListener", "3-");
+				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IFormSubmitListener", "3*");
 		queryString = Strings.replaceAll(queryString,
-				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IOnChangeListener", "4-");
+				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IOnChangeListener", "4*");
 		queryString = Strings.replaceAll(queryString,
-				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=ILinkListener", "5-");
+				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=ILinkListener", "5*");
 		queryString = Strings.replaceAll(queryString,
-				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=", "6-");
+				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=", "6*");
 		queryString = Strings.replaceAll(queryString,
-				WebRequestCodingStrategy.BOOKMARKABLE_PAGE_PARAMETER_NAME + "=", "7-");
+				WebRequestCodingStrategy.BOOKMARKABLE_PAGE_PARAMETER_NAME + "=", "7*");
 
 		// For debugging only: determine possibilities to further shorten
 		// the query string
@@ -337,19 +337,19 @@
 	 */
 	protected String rebuildUrl(CharSequence queryString)
 	{
-		queryString = Strings.replaceAll(queryString, "1-",
+		queryString = Strings.replaceAll(queryString, "1*",
 				WebRequestCodingStrategy.BEHAVIOR_ID_PARAMETER_NAME + "=");
-		queryString = Strings.replaceAll(queryString, "2-",
+		queryString = Strings.replaceAll(queryString, "2*",
 				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IRedirectListener");
-		queryString = Strings.replaceAll(queryString, "3-",
+		queryString = Strings.replaceAll(queryString, "3*",
 				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IFormSubmitListener");
-		queryString = Strings.replaceAll(queryString, "4-",
+		queryString = Strings.replaceAll(queryString, "4*",
 				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=IOnChangeListener");
-		queryString = Strings.replaceAll(queryString, "5-",
+		queryString = Strings.replaceAll(queryString, "5*",
 				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=ILinkListener");
-		queryString = Strings.replaceAll(queryString, "6-",
+		queryString = Strings.replaceAll(queryString, "6*",
 				WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=");
-		queryString = Strings.replaceAll(queryString, "7-",
+		queryString = Strings.replaceAll(queryString, "7*",
 				WebRequestCodingStrategy.BOOKMARKABLE_PAGE_PARAMETER_NAME + "=");
 
 		return queryString.toString();