edu.mayo.bsi.ngsportal.server
Class HTTPCoder

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.server.HTTPCoder

public class HTTPCoder
extends Object

@author Gregory Dougherty


Constructor Summary
HTTPCoder()
           
 
Method Summary
static String httpDecode(String token)
          Take a string that was HTML encoded and decode it
static String httpEncode(String token)
          Take a string and encode it so that it can be safely sent via HTTP
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPCoder

public HTTPCoder()
Method Detail

httpEncode

public static String httpEncode(String token)
Take a string and encode it so that it can be safely sent via HTTP

Parameters:
token - The String to encode
Returns:
The encoded string

httpDecode

public static String httpDecode(String token)
Take a string that was HTML encoded and decode it

Parameters:
token - The String to decode
Returns:
The decoded string