org.sakaiproject.portal.util
Class URLUtils

java.lang.Object
  extended by org.sakaiproject.portal.util.URLUtils

public class URLUtils
extends Object

Since:
Sakai 2.4
Version:
$Rev: 110562 $
Author:
ieb

Constructor Summary
URLUtils()
           
 
Method Summary
static String addParameter(String URL, String name, String value)
           
static String encodeUrl(String url)
          The same behaviour as Web.escapeUrl, only without the "funky encoding" of the characters ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLUtils

public URLUtils()
Method Detail

addParameter

public static String addParameter(String URL,
                                  String name,
                                  String value)

encodeUrl

public static String encodeUrl(String url)
The same behaviour as Web.escapeUrl, only without the "funky encoding" of the characters ? and ; (uses JDK URLEncoder directly).

Parameters:
toencode - The string to encode.
Returns:
toencode fully escaped using URL rules.


Copyright © 2003-2012 University of Michigan. All Rights Reserved.