Author: ehillenius
Date: Sat Jan  6 14:43:17 2007
New Revision: 493591

URL: http://svn.apache.org/viewvc?view=rev&rev=493591
Log:
sorted members + toString

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java?view=diff&rev=493591&r1=493590&r2=493591
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java 
(original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java 
Sat Jan  6 14:43:17 2007
@@ -115,24 +115,6 @@
        public abstract String getRelativeURL();
 
        /**
-        * Retrieves the absolute URL of this request for local use.
-        * 
-        * @return The absolute request URL for local use
-        */
-       public abstract String getURL();
-
-       /**
-        * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.
-        * 
-        * @param page
-        *            The Page for this request
-        */
-       public void setPage(final Page page)
-       {
-               this.page = page;
-       }
-
-       /**
         * Gets the request parameters object using the instance of
         * [EMAIL PROTECTED] IRequestCodingStrategy} of the provided request 
cycle processor.
         * 
@@ -160,20 +142,46 @@
                try
                {
                        requestParameters = encoder.decode(this);
-               } 
-               catch(RuntimeException re)
+               }
+               catch (RuntimeException re)
                {
                        // do set the parameters as it was parsed.
                        // else the error page will also error again (infinite 
loop)
                        requestParameters = new RequestParameters();
                        throw re;
-               }               
-               
+               }
+
                if (requestParameters == null)
                {
                        throw new WicketRuntimeException("request parameters 
must be not-null (provided by "
                                        + encoder + ")");
                }
                return requestParameters;
+       }
+
+       /**
+        * Retrieves the absolute URL of this request for local use.
+        * 
+        * @return The absolute request URL for local use
+        */
+       public abstract String getURL();
+
+       /**
+        * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.
+        * 
+        * @param page
+        *            The Page for this request
+        */
+       public void setPage(final Page page)
+       {
+               this.page = page;
+       }
+
+       /**
+        * @see java.lang.Object#toString()
+        */
+       public String toString()
+       {
+               return "Request[url=" + getURL() + "]";
        }
 }


Reply via email to