|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mayo.bsi.ngsportal.server.HTMLCoder
public class HTMLCoder
Class to encode and decode all the parameters needed to do a search on the server, or to rebuild the interface on the client.
@author Gregory Dougherty
| Constructor Summary | |
|---|---|
HTMLCoder()
|
|
| Method Summary | |
|---|---|
static String |
httpDecode(String token)
Take a string that was HTML encoded and decode it |
static String |
httpDecodeParameter(javax.servlet.http.HttpServletRequest request,
String parameter)
Extract a HTML encoded parameter from an HTTP Request and decode it |
static String[] |
httpDecodeParameterValues(javax.servlet.http.HttpServletRequest request,
String parameter)
Extract all HTML encoded parameter values from an HTTP Request and decode them |
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 |
|---|
public HTMLCoder()
| Method Detail |
|---|
public static String httpEncode(String token)
token - String to encode
public static String httpDecode(String token)
token - URL safe string to be decoded
public static String httpDecodeParameter(javax.servlet.http.HttpServletRequest request,
String parameter)
request - Where to get the parameter. Must not be nullparameter - Name of the parameter to be decoded
public static String[] httpDecodeParameterValues(javax.servlet.http.HttpServletRequest request,
String parameter)
request - Where to get the parameter. Must not be nullparameter - Name of the parameter values to be decoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||