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

Servlet for communication with clients (annotation editors) More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.comet.AnnotCometServlet:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.comet.AnnotCometServlet:
Collaboration graph

Classes

class  AnnotHandler
 Comet handler. More...
 

Public Member Functions

void init (ServletConfig config) throws ServletException
 
String getServletInfo ()
 

Protected Member Functions

void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 
void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 

Private Attributes

String contextPath = null
 

Detailed Description

Servlet for communication with clients (annotation editors)

Servlet for communication with clients (annotation editors)

Author
idytrych

Definition at line 49 of file AnnotCometServlet.java.

Member Function Documentation

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

Handles the HTTP GET method. This method is dedicated for comet requests. Session id is sent as URI parameter "session".

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

Definition at line 298 of file AnnotCometServlet.java.

Here is the call graph for this function:

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

Handles the HTTP POST method. If only one message (session) is sent, this is comet request, else this is AJAX request.

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

Definition at line 391 of file AnnotCometServlet.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.comet.AnnotCometServlet.getServletInfo ( )

Returns a short description of the servlet.

Returns
a String containing servlet description

Definition at line 603 of file AnnotCometServlet.java.

void cz.vutbr.fit.knot.annotations.comet.AnnotCometServlet.init ( ServletConfig  config) throws ServletException

Initializes servlet (sets path, timeout etc.)

Parameters
configConfiguration info

Definition at line 276 of file AnnotCometServlet.java.

Member Data Documentation

String cz.vutbr.fit.knot.annotations.comet.AnnotCometServlet.contextPath = null
private

Context path of servlet

Definition at line 52 of file AnnotCometServlet.java.


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