4A Server -
2.0
|
Servlet which makes available annotations. More...
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 | |
List< Annotation > | getAllAnnotationsForDoc (AnnotDocument doc) |
List< Annotation > | getAllAnnotationsForDocAndAuthor (AnnotDocument doc, Integer author) |
List< Annotation > | getAllAnnotationsForAuthor (Integer author) |
String | printError () |
Static Private Attributes | |
static final int | OUTPUT_TYPE_V1 = 0 |
static final int | OUTPUT_TYPE_V2 = 1 |
static final int | OUTPUT_TYPE_SUG = 2 |
Servlet which makes available annotations.
Servlet which makes available annotations It accepts following parameters: out - type of output ("v1", "v2" or "sug") uri - URI of requested annotation doc - id of annotated document for which annotations should be retrieved
Definition at line 45 of file GetAnnotServlet.java.
|
protected |
Handles the HTTP GET
method.
request | servlet request |
response | servlet response |
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 363 of file GetAnnotServlet.java.
|
protected |
Handles the HTTP POST
method.
request | servlet request |
response | servlet response |
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 378 of file GetAnnotServlet.java.
|
private |
Returns all annotations for given author
author | Id of author of annotations |
Definition at line 323 of file GetAnnotServlet.java.
|
private |
Returns all annotations for given document
doc | Document for which annotations should be returned |
Definition at line 280 of file GetAnnotServlet.java.
|
private |
Returns all annotations for given document and author
doc | Document for which annotations should be returned |
author | Id of author of annotations |
Definition at line 301 of file GetAnnotServlet.java.
String cz.vutbr.fit.knot.annotations.comet.GetAnnotServlet.getServletInfo | ( | ) |
Returns a short description of the servlet.
Definition at line 389 of file GetAnnotServlet.java.
|
private |
Creates error message for case of bad request
Definition at line 341 of file GetAnnotServlet.java.
|
protected |
Processes requests for both HTTP GET
and POST
methods.
request | servlet request |
response | servlet response |
ServletException | if a servlet-specific error occurs |
IOException | if an I/O error occurs |
Definition at line 61 of file GetAnnotServlet.java.
|
staticprivate |
Definition at line 49 of file GetAnnotServlet.java.
|
staticprivate |
Definition at line 47 of file GetAnnotServlet.java.
|
staticprivate |
Definition at line 48 of file GetAnnotServlet.java.