org.mmbase.util
Class URLParamEscape

java.lang.Object
  extended by org.mmbase.util.URLParamEscape

Deprecated. use Encode

public class URLParamEscape
extends Object

Escapes and Unescapes undesirable characters using % (URLEncoding) but keeps param makers alive (needs to be checked if used and if it can't be combined in URLEscape). The only difference with URLEscape is that the plus-sign ('+') is escaped.

Version:
$Id: URLParamEscape.java 35335 2009-05-21 08:14:41Z michiel $
Author:
vpro

Field Summary
(package private) static char[] hex
          Deprecated. Hex characters
(package private) static char HEX_ESCAPE
          Deprecated. Character to use for escaping invalid characters
(package private) static boolean[] isacceptable
          Deprecated. List for all ASCII characters whether it can be part of an URL line.
 
Constructor Summary
URLParamEscape()
          Deprecated.  
 
Method Summary
static String escapeurl(String str)
          Deprecated. Escape a url.
static void main(String[] args)
          Deprecated. Method for testing this class from the command line
static String unescapeurl(String str)
          Deprecated. Unescape a url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isacceptable

static boolean[] isacceptable
Deprecated. 
List for all ASCII characters whether it can be part of an URL line.


hex

static char[] hex
Deprecated. 
Hex characters


HEX_ESCAPE

static char HEX_ESCAPE
Deprecated. 
Character to use for escaping invalid characters

Constructor Detail

URLParamEscape

public URLParamEscape()
Deprecated. 
Method Detail

escapeurl

public static String escapeurl(String str)
Deprecated. 
Escape a url. Replaces 'invalid characters' with their Escaped code, i.e. the questionmark (?) is escaped with %3F.

Parameters:
str - the urls to escape
Returns:
the escaped url.

unescapeurl

public static String unescapeurl(String str)
Deprecated. 
Unescape a url. Replaces escapesequenced with the actual character. i.e %3F is replaced with the the questionmark (?).

Parameters:
str - the urls to unescape
Returns:
the unescaped url.

main

public static void main(String[] args)
Deprecated. 
Method for testing this class from the command line



MMBase 2.0-SNAPSHOT - null