|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.matalon.pagerankhits.servlet.ServletUtil
This class includes common servlet related utilities.
| Constructor Summary | |
ServletUtil()
|
|
| Method Summary | |
static java.lang.String |
validate(java.lang.String paramName,
javax.servlet.http.HttpServletRequest request,
java.lang.String[] possibleValues)
Validates that the request includes a parameter named |
static java.lang.String |
validateNotNull(java.lang.String paramName,
javax.servlet.http.HttpServletRequest request)
Validates that the request includes a parameter named |
static void |
writeMatrix(java.io.PrintWriter printWriter,
java.lang.String[][] matrix)
Writes the given matrix to the given PrintWriter. |
static void |
writeSparseMatrix(java.io.PrintWriter printWriter,
java.lang.String[][] matrix,
java.lang.String matrixName,
boolean addVirtualNode)
Writes the given matrix (named matrixName) to the
given PrintWriter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServletUtil()
| Method Detail |
public static final java.lang.String validate(java.lang.String paramName,
javax.servlet.http.HttpServletRequest request,
java.lang.String[] possibleValues)
throws javax.servlet.ServletException
paramName - request - possibleValues -
javax.servlet.ServletException
public static final java.lang.String validateNotNull(java.lang.String paramName,
javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
paramName - request -
javax.servlet.ServletException
public static final void writeMatrix(java.io.PrintWriter printWriter,
java.lang.String[][] matrix)
matrix to the given PrintWriter.
printWriter - matrix -
public static final void writeSparseMatrix(java.io.PrintWriter printWriter,
java.lang.String[][] matrix,
java.lang.String matrixName,
boolean addVirtualNode)
matrix (named matrixName) to the
given PrintWriter. The matrix is written in its sparse form.
If addVirtualNode is true, then the written matrix shall
include an additional virtual node which has links to all the other nodes and
all the other nodes have links to it.
printWriter - matrix - matrixName - addVirtualNode -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||