4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.web.GetDocumentServlet Class Reference

Servlet which makes available uploaded documents. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.web.GetDocumentServlet:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.web.GetDocumentServlet:
Collaboration graph

Public Member Functions

String getServletInfo ()
 

Protected Member Functions

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
 

Private Member Functions

String printError ()
 

Detailed Description

Servlet which makes available uploaded documents.

Servlet which makes available uploaded documents

Author
idytrych

Definition at line 32 of file GetDocumentServlet.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.web.GetDocumentServlet.doGet ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Handles the HTTP GET method.

Parameters
requestservlet request
responseservlet response
Exceptions
ServletExceptionif a servlet-specific error occurs
IOExceptionif an I/O error occurs

Definition at line 105 of file GetDocumentServlet.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.web.GetDocumentServlet.doPost ( HttpServletRequest  request,
HttpServletResponse  response 
) throws ServletException, IOException
protected

Handles the HTTP POST method.

Parameters
requestservlet request
responseservlet response
Exceptions
ServletExceptionif a servlet-specific error occurs
IOExceptionif an I/O error occurs

Definition at line 119 of file GetDocumentServlet.java.

Here is the call graph for this function:

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.

Here is the caller graph for this function:

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
requestservlet request
responseservlet response
Exceptions
ServletExceptionif a servlet-specific error occurs
IOExceptionif an I/O error occurs

Definition at line 41 of file GetDocumentServlet.java.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: