Servlet which makes available annotated copies of documents.
More...
|
void | processRequest (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
|
void | doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
|
void | doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
|
Servlet which makes available annotated copies of documents.
Servlet which makes available annotated copies of documents
- Author
- idytrych
Definition at line 35 of file GetDocServlet.java.
void cz.vutbr.fit.knot.annotations.comet.GetDocServlet.doGet |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
Handles the HTTP GET
method.
- Parameters
-
request | servlet request |
response | servlet response |
- Exceptions
-
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 112 of file GetDocServlet.java.
void cz.vutbr.fit.knot.annotations.comet.GetDocServlet.doPost |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
Handles the HTTP POST
method.
- Parameters
-
request | servlet request |
response | servlet response |
- Exceptions
-
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 126 of file GetDocServlet.java.
String cz.vutbr.fit.knot.annotations.comet.GetDocServlet.getServletInfo |
( |
| ) |
|
Returns a short description of the servlet.
- Returns
- a String containing servlet description
Definition at line 137 of file GetDocServlet.java.
String cz.vutbr.fit.knot.annotations.comet.GetDocServlet.printError |
( |
| ) |
|
|
private |
Creates error message for case document isn't found
- Returns
- Simple HTML page with error message
Definition at line 90 of file GetDocServlet.java.
void cz.vutbr.fit.knot.annotations.comet.GetDocServlet.processRequest |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
Processes requests for both HTTP GET
and POST
methods. Gets document from database and returns document content to the client.
- Parameters
-
request | servlet request |
response | servlet response |
- Exceptions
-
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 46 of file GetDocServlet.java.
The documentation for this class was generated from the following file: