Changed getEncodedLocation() to getLocationEncoded() because I like it

more.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@129 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-05-26 23:20:38 +00:00
parent 37a83abc67
commit 48dedcfbcc
2 changed files with 4 additions and 4 deletions
@@ -1,5 +1,5 @@
//
// $Id: UserManager.java,v 1.6 2001/05/26 23:18:11 mdb Exp $
// $Id: UserManager.java,v 1.7 2001/05/26 23:20:38 mdb Exp $
package com.samskivert.servlet.user;
@@ -129,7 +129,7 @@ public class UserManager
// the login page
if (user == null) {
// first construct the redirect URL
String eurl = RequestUtils.getEncodedLocation(req);
String eurl = RequestUtils.getLocationEncoded(req);
String target = StringUtil.replace(_loginURL, "%R", eurl);
throw new RedirectException(target);
}
@@ -1,5 +1,5 @@
//
// $Id: RequestUtils.java,v 1.1 2001/05/26 23:18:11 mdb Exp $
// $Id: RequestUtils.java,v 1.2 2001/05/26 23:20:38 mdb Exp $
package com.samskivert.servlet.util;
@@ -20,7 +20,7 @@ public class RequestUtils
*
* @return The URL encoded URL that represents our current location.
*/
public static String getEncodedLocation (HttpServletRequest req)
public static String getLocationEncoded (HttpServletRequest req)
{
return URLEncoder.encode(getLocation(req));
}