|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.util.ServletUtil
public class ServletUtil
Field Summary | |
---|---|
static String |
HTML_TAIL
|
Constructor Summary | |
---|---|
ServletUtil()
|
Method Summary | |
---|---|
static String |
encodePath(String path)
Escape and encode a string regarded as the path component of an URI. |
static String |
encodeQueryValue(String value)
Escape and encode a string regarded as within the query component of an URI. |
static String |
getDecodedPath(javax.servlet.http.HttpServletRequest request,
String servletName)
Parse and decode the path component from the given request. |
static String |
getParameter(javax.servlet.ServletRequest request,
String name)
Get a parameter from a ServletRequest. |
static String |
getRawPath(javax.servlet.http.HttpServletRequest request,
String servletName)
Parse the path component from the given request and return w/o decoding. |
static String |
htmlFooter()
HTML footer to be added in the jsps. |
static PrintWriter |
initHTML(javax.servlet.ServletResponse response,
String title)
Initial HTML header |
static String |
percentageGraph(float perc,
int width)
Generate the percentage graph and returns HTML representation string of the same. |
static String |
percentageGraph(int perc,
int width)
Generate the percentage graph and returns HTML representation string of the same. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HTML_TAIL
Constructor Detail |
---|
public ServletUtil()
Method Detail |
---|
public static PrintWriter initHTML(javax.servlet.ServletResponse response, String title) throws IOException
IOException
public static String getParameter(javax.servlet.ServletRequest request, String name)
public static String htmlFooter()
public static String percentageGraph(int perc, int width) throws IOException
perc
- The percentage value for which graph is to be generatedwidth
- The width of the display table
IOException
public static String percentageGraph(float perc, int width) throws IOException
perc
- The percentage value for which graph is to be generatedwidth
- The width of the display table
IOException
public static String encodeQueryValue(String value)
value
- the value to encode
public static String encodePath(String path)
path
- the path component to encode
public static String getDecodedPath(javax.servlet.http.HttpServletRequest request, String servletName)
request
- Http request to parseservletName
- the name of servlet that precedes the path
public static String getRawPath(javax.servlet.http.HttpServletRequest request, String servletName)
request
- Http request to parseservletName
- the name of servlet that precedes the path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |