Servlet which makes available uploaded 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 uploaded documents.
Servlet which makes available uploaded documents
- Author
- idytrych
Definition at line 32 of file GetDocumentServlet.java.
void cz.vutbr.fit.knot.annotations.web.GetDocumentServlet.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 105 of file GetDocumentServlet.java.
void cz.vutbr.fit.knot.annotations.web.GetDocumentServlet.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 119 of file GetDocumentServlet.java.
String cz.vutbr.fit.knot.annotations.web.GetDocumentServlet.getServletInfo |
( |
| ) |
|
Returns a short description of the servlet.
- Returns
- a String containing servlet description
Definition at line 130 of file GetDocumentServlet.java.
String cz.vutbr.fit.knot.annotations.web.GetDocumentServlet.printError |
( |
| ) |
|
|
private |
Creates error message for case document isn't found
- Returns
- Simple HTML page with error message
Definition at line 84 of file GetDocumentServlet.java.
void cz.vutbr.fit.knot.annotations.web.GetDocumentServlet.processRequest |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
Processes requests for both HTTP GET
and POST
methods.
- 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 41 of file GetDocumentServlet.java.
The documentation for this class was generated from the following file: