|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.handler.DataHandler
Handles GET requests to retrieve work units of another server.
The GET request req can contain the following parameters:
list - returns a list of of all available work units.dir - returns a list of all available work units except the latest.get - get a specified work unit.put - put a specified work unit.del - delete a specified work unit.resp contains alist of work units or the data of a specified work unit.
| Field Summary | |
private ZetaServlet |
servlet
Servlet which owns this handler. |
| Constructor Summary | |
DataHandler(ZetaServlet servlet)
|
|
| Method Summary | |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handles GET requests to retrieve work units of another server. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handles a POST request to put work units from another server. |
private static java.lang.String |
getParameter(java.util.Map parameter,
java.lang.String key)
Returns a value for a key from the specified map with parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ZetaServlet servlet
| Constructor Detail |
public DataHandler(ZetaServlet servlet)
servlet - servlet which owns this handler.| Method Detail |
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
req can contain the following parameters:
list - returns a list of of all available work units.dir - returns a list of all available work units except the latest.get - get a specified work unit.del - delete a specified work unit.resp contains a list of work units or the data of a specified work unit.
doGet in interface GetHandlerjavax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
req can contain the following parameters:
dir - returns a list of work units.get - get a specified work unit.del - delete a specified work unit.resp contains an 'ok' or an error.
doPost in interface PostHandlerjavax.servlet.ServletException
java.io.IOException
private static java.lang.String getParameter(java.util.Map parameter,
java.lang.String key)
parameter - map with parameterskey - key
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||