com.plumtree.taskapi.portalui
Class TaskAPIUIHTTP

java.lang.Object
  extended by com.plumtree.taskapi.portalui.TaskAPIUIHTTP

public class TaskAPIUIHTTP
extends java.lang.Object

Class description

Author:
robertz

Field Summary
static java.lang.String ENCODING_UTF8
           
 
Constructor Summary
TaskAPIUIHTTP()
           
 
Method Summary
static java.lang.String URLDecode(java.lang.String strValue, java.lang.String strEncoding)
          Returns a decoded version of the input string, assuming it was a valid URL encoding.
static java.lang.String URLEncode(java.lang.String strValue, java.lang.String strEncoding)
          Returns a URL-encoded version of the input string, or empty string if input is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING_UTF8

public static final java.lang.String ENCODING_UTF8
See Also:
Constant Field Values
Constructor Detail

TaskAPIUIHTTP

public TaskAPIUIHTTP()
Method Detail

URLEncode

public static java.lang.String URLEncode(java.lang.String strValue,
                                         java.lang.String strEncoding)
Returns a URL-encoded version of the input string, or empty string if input is null.

Parameters:
strValue - a string of characters to encode for use i.
strEncoding - the encoding used to interpret the encoded bytes. Use ENCODING_UTF8
Returns:
an encoded version of the input, or empty string if null.

URLDecode

public static java.lang.String URLDecode(java.lang.String strValue,
                                         java.lang.String strEncoding)
Returns a decoded version of the input string, assuming it was a valid URL encoding.

Parameters:
strValue - the string to decode
strEncoding - the encoding used to interpret the encoded bytes
Returns:
a decoded version of the input.
Throws:
XPNullPointerException - if input null
XPUnsupportedEncodingException - if invalid ampersand escape found



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.