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

Class that creates responses and persists data. More...

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

Public Member Functions

 ResponseCreator ()
 
String createPostResponse (RequestInfo requestInfo)
 
String createCometResponse (Flier flier, EditorSession session)
 
String createSettings (RequestInfo requestInfo)
 
String createReloadedAnnot (RequestInfo requestInfo)
 
ArrayList< AnnotServerModulegetModules ()
 
void setModules (ArrayList< AnnotServerModule > modules)
 
void addModule (AnnotServerModule module)
 
boolean removeModule (AnnotServerModule module)
 

Package Attributes

ArrayList< AnnotServerModulemodules
 

Detailed Description

Class that creates responses and persists data.

Class that creates responses (calls modules) and persists data

Author
idytrych

Definition at line 34 of file ResponseCreator.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.comet.ResponseCreator.ResponseCreator ( )

Constructor (loads basic modules)

Definition at line 40 of file ResponseCreator.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.comet.ResponseCreator.addModule ( AnnotServerModule  module)

Adds server module to list of active modules

Parameters
moduleModule to be added

Definition at line 252 of file ResponseCreator.java.

String cz.vutbr.fit.knot.annotations.comet.ResponseCreator.createCometResponse ( Flier  flier,
EditorSession  session 
)

Creates response to client's comet request (GET or special POST). Calls modules and assembly response.

Parameters
flierFlier with informations
sessionClient's session
Returns
Returns string with messages for the client in XML

Definition at line 148 of file ResponseCreator.java.

String cz.vutbr.fit.knot.annotations.comet.ResponseCreator.createPostResponse ( RequestInfo  requestInfo)

Creates response to client POST request (not to comet request). Calls modules, assembly response and persists data.

Parameters
requestInfoInformations about client POST request
Returns
Returns string with messages for the client in XML

Definition at line 60 of file ResponseCreator.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.comet.ResponseCreator.createReloadedAnnot ( RequestInfo  requestInfo)

Creates message with reloaded annotations

Parameters
requestInfoInformations about client request
Returns
Returns requested annotations in XML (in annotations change message)

Definition at line 196 of file ResponseCreator.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.comet.ResponseCreator.createSettings ( RequestInfo  requestInfo)

Creates message with user settings

Parameters
requestInfoInformations about client request
Returns
Returns messages with user settings in XML

Definition at line 177 of file ResponseCreator.java.

Here is the caller graph for this function:

ArrayList<AnnotServerModule> cz.vutbr.fit.knot.annotations.comet.ResponseCreator.getModules ( )

Gets list of active server modules

Returns
Returns list of active server modules

Definition at line 234 of file ResponseCreator.java.

boolean cz.vutbr.fit.knot.annotations.comet.ResponseCreator.removeModule ( AnnotServerModule  module)

Removes server module from list of active modules

Parameters
moduleModule to be removed
Returns
If succeed, returns removed module, else returns null

Definition at line 262 of file ResponseCreator.java.

void cz.vutbr.fit.knot.annotations.comet.ResponseCreator.setModules ( ArrayList< AnnotServerModule modules)

Sets list of active server modules

Parameters
modulesList of active server modules

Definition at line 243 of file ResponseCreator.java.

Member Data Documentation

ArrayList<AnnotServerModule> cz.vutbr.fit.knot.annotations.comet.ResponseCreator.modules
package

Definition at line 35 of file ResponseCreator.java.


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