Class SubmitQueryServlet
SubmitQueryServlet
- public class SubmitQueryServlet
The SubmitQueryServlet is no longer in use by the BioQuery application and does not need
to be installed! This servlet received commands and Query objects from the client
in order to submit Querys from the server, rather than directly from the client. This makes
the server a QuerySubmitter proxy. This can bypass security restrictions if the client is
implemented in Java Web Start or as an applet, and may help with Clients behind a total
(HTTP-blocking) firewall. If the Clients have internet access, this Servlet is not needed
since all communications are over HTTP.
The SubmitQueryServlet class has the sole responsibility of waiting for a
client to request the submission of a Query. The client does this by
sending an httpPost request to the servlet that contains a serialized
Query object. The SubmitQueryServlet instantiates the Query, submits the
Query (via it's QuerySubmitter object) and streams the response back to
the client as an httpResponse.
- Author:
- James Brundege
|
Method Summary |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
doGet method for testing purposes only. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Overriden doPost method accepts a serialized Query object, instantiates
it, submits it to it's database, and returns the results back to the
client as the Response. |
SubmitQueryServlet
public SubmitQueryServlet()
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- doGet method for testing purposes only. Not used by the program.
doPost
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Overriden doPost method accepts a serialized Query object, instantiates
it, submits it to it's database, and returns the results back to the
client as the Response.