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

Servlet which makes available annotated copies of documents. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.comet.GetDocServlet:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.comet.GetDocServlet:
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 annotated copies of documents.

Servlet which makes available annotated copies of documents

Author
idytrych

Definition at line 35 of file GetDocServlet.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.comet.GetDocServlet.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 112 of file GetDocServlet.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.comet.GetDocServlet.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 126 of file GetDocServlet.java.

Here is the call graph for this function:

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.

Here is the caller graph for this function:

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

Definition at line 46 of file GetDocServlet.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: