|
||||||||||
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 java.lang.String |
HTML_TAIL
|
Constructor Summary | |
---|---|
ServletUtil()
|
Method Summary | |
---|---|
static java.lang.String |
getParameter(javax.servlet.ServletRequest request,
java.lang.String name)
Get a parameter from a ServletRequest. |
static java.lang.String |
htmlFooter()
HTML footer to be added in the jsps. |
static java.io.PrintWriter |
initHTML(javax.servlet.ServletResponse response,
java.lang.String title)
Initial HTML header |
static java.lang.String |
percentageGraph(float perc,
int width)
Generate the percentage graph and returns HTML representation string of the same. |
static java.lang.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 java.lang.String HTML_TAIL
Constructor Detail |
---|
public ServletUtil()
Method Detail |
---|
public static java.io.PrintWriter initHTML(javax.servlet.ServletResponse response, java.lang.String title) throws java.io.IOException
java.io.IOException
public static java.lang.String getParameter(javax.servlet.ServletRequest request, java.lang.String name)
public static java.lang.String htmlFooter()
public static java.lang.String percentageGraph(int perc, int width) throws java.io.IOException
perc
- The percentage value for which graph is to be generatedwidth
- The width of the display table
java.io.IOException
public static java.lang.String percentageGraph(float perc, int width) throws java.io.IOException
perc
- The percentage value for which graph is to be generatedwidth
- The width of the display table
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |