|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.util.ServletUtil
public class ServletUtil
Field Summary | |
---|---|
static String |
HTML_TAIL
|
Constructor Summary | |
---|---|
ServletUtil()
|
Method Summary | |
---|---|
static String |
getParameter(javax.servlet.ServletRequest request,
String name)
Get a parameter from a ServletRequest. |
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |