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

Class which parses and process XML with messages for protocol version 2. More...

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

Public Member Functions

 P2Processor ()
 
void processXMLDocument (Element mainElement, RequestInfo requestInfo)
 

Private Member Functions

User processLogin (Element loginEl, RequestInfo requestInfo)
 
ArrayList< String > processUsersQuerry (Element userQueryEl)
 
boolean[] processIncludeOnly (Element includeOnlyEl)
 
void processJoin (Element joinEl, RequestInfo requestInfo)
 
void processLeave (Element leaveEl, RequestInfo requestInfo)
 
ArrayList< String > processGroupsQuery (Element groupsQueryEl, RequestInfo requestInfo)
 
void procesAddSubscription (Element addSubscriptionEl, RequestInfo requestInfo)
 
void procesChangeSubscription (Element changeSubscriptionEl, RequestInfo requestInfo)
 
void procesRemoveSubscription (Element removeSubscriptionEl, RequestInfo requestInfo)
 
void processSubscribe (Element subscribeEl, RequestInfo requestInfo)
 
void processUnsubscribe (Element unsubscribeEl, RequestInfo requestInfo)
 
void processSubscriptionsQuery (Element subscriptionsQueryEl, RequestInfo requestInfo)
 
void processDocumentModification (Element modificationEl, RequestInfo requestInfo)
 
void processDocumentReplace (Element replaceEl, RequestInfo requestInfo)
 
void processDocumentInsertBefore (Element insertBeforeEl, RequestInfo requestInfo)
 
void processDocumentInsertAfter (Element insertAfterEl, RequestInfo requestInfo)
 
Source processSource (Element subscriptionEl, RequestInfo requestInfo, Subscription subs)
 
void processResynchronize (Element resynchronizeEl, RequestInfo requestInfo)
 
void processSynchronize (Element synchronizeEl, RequestInfo requestInfo)
 
void processReloadAnnotation (Element reloadAnnotationEl, RequestInfo requestInfo)
 
void processEntityQuery (Element entityQueryEl, RequestInfo requestInfo)
 
void processSettings (Element settingsEl, RequestInfo requestInfo)
 
ArrayList< SettingsgetUserSettings (User user)
 
Integer getGroupIdFromUri (String uri)
 
void joinToGroup (Integer id, RequestInfo requestInfo)
 
void leaveGroup (Integer id, RequestInfo requestInfo)
 

Private Attributes

RequestInfo requestInfo
 

Detailed Description

Class which parses and process XML with messages for protocol version 2.

Class which parses and process XML with messages for protocol version 2

Author
Martin Petr (xpetrm05)

Definition at line 45 of file P2Processor.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.P2Processor ( )

Constructor

Definition at line 51 of file P2Processor.java.

Member Function Documentation

Integer cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.getGroupIdFromUri ( String  uri)
private

Method gets id of user group by strip off base URI.

Parameters
uriuri of group
Returns
id of group uri

Definition at line 1705 of file P2Processor.java.

Here is the caller graph for this function:

ArrayList<Settings> cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.getUserSettings ( User  user)
private

Gets settings of given user

Parameters
userUser which settings should be found
Returns
Settings of given user

Definition at line 1682 of file P2Processor.java.

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.joinToGroup ( Integer  id,
RequestInfo  requestInfo 
)
private

Method adds a user to the group specified by id.

Parameters
ididentification of group
requestInfoInformations about client request

Definition at line 1736 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.leaveGroup ( Integer  id,
RequestInfo  requestInfo 
)
private

Method removes a user to the group specified by id.

Parameters
ididentification of group
requestInfoInformations about client request

Definition at line 1788 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.procesAddSubscription ( Element  addSubscriptionEl,
RequestInfo  requestInfo 
)
private

Method process the element with subscriptions for add.

Parameters
addSubscriptionElelement with subscriptions for add
requestInfoInformations about client request

Definition at line 786 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.procesChangeSubscription ( Element  changeSubscriptionEl,
RequestInfo  requestInfo 
)
private

Method process the element with subscriptions for change.

Parameters
changeSubscriptionElelement with subscriptions for change
requestInfoInformations about client request

Definition at line 901 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.procesRemoveSubscription ( Element  removeSubscriptionEl,
RequestInfo  requestInfo 
)
private

Method process the element with subscriptions for delete.

Parameters
removeSubscriptionElelement with subscriptions for delete
requestInfoInformations about client request

Definition at line 1003 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processDocumentInsertAfter ( Element  insertAfterEl,
RequestInfo  requestInfo 
)
private

Method process the message about text modification - insertAfter Informations are stored to requestInfo.

Parameters
insertAfterElMessages to process
requestInfoInformations about client request

Definition at line 1370 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processDocumentInsertBefore ( Element  insertBeforeEl,
RequestInfo  requestInfo 
)
private

Method process the message about text modification - insertBefore Informations are stored to requestInfo.

Parameters
insertBeforeElElement to process
requestInfoInformations about client request

Definition at line 1351 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processDocumentModification ( Element  modificationEl,
RequestInfo  requestInfo 
)
private

Method process text modification message Informations are stored to requestInfo.

Parameters
modificationElElement to process
requestInfoInformations about client request

Definition at line 1221 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processDocumentReplace ( Element  replaceEl,
RequestInfo  requestInfo 
)
private

Method process the message about text modification - replace Informations are stored to requestInfo.

Parameters
replaceElElement to process
requestInfoInformations about client request

Definition at line 1290 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processEntityQuery ( Element  entityQueryEl,
RequestInfo  requestInfo 
)
private

Method process the element with query for entity types.

Parameters
entityQueryElelement with query for entity types
requestInfoInformations about client request

Definition at line 1581 of file P2Processor.java.

Here is the caller graph for this function:

ArrayList<String> cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processGroupsQuery ( Element  groupsQueryEl,
RequestInfo  requestInfo 
)
private

Method process the element with query and creates a list of query parameters.

Parameters
groupsQueryElelement with query for user group
requestInfoInformations about client request
Returns
list with parameters of query

Definition at line 752 of file P2Processor.java.

Here is the caller graph for this function:

boolean [] cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processIncludeOnly ( Element  includeOnlyEl)
private

Method analyzes the element with restrictions on printing of pramethers of user and make array of booleans with results.

Parameters
includeOnlyElelement with restrictions
Returns
array of booleans with results

Definition at line 651 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processJoin ( Element  joinEl,
RequestInfo  requestInfo 
)
private

Method analyzes the element with joining user group element and adds user to group.

Parameters
joinElelement with informations about joining group
requestInfoInformations about client request

Definition at line 700 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processLeave ( Element  leaveEl,
RequestInfo  requestInfo 
)
private

Method analyzes the element with leaving user group element and removes user from group.

Parameters
leaveElelement with informations about leaving group
requestInfoInformations about client reque

Definition at line 726 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

User cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processLogin ( Element  loginEl,
RequestInfo  requestInfo 
)
private

Method handle user login message.

Parameters
loginElelement with user credentials
requestInfoInformations about client request
Returns
logged user

Definition at line 438 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processReloadAnnotation ( Element  reloadAnnotationEl,
RequestInfo  requestInfo 
)
private

Method that process element with request for reloading either all or single annotation

Parameters
reloadAnnotationElElement with request
requestInfoInformations about client request

Definition at line 1521 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processResynchronize ( Element  resynchronizeEl,
RequestInfo  requestInfo 
)
private

Method process the element with document for resynchronization.

Parameters
resynchronizeElelement with document for resynchronization
requestInfoInformations about client request

Definition at line 1442 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processSettings ( Element  settingsEl,
RequestInfo  requestInfo 
)
private

Process settings message. Informations are stored into requestInfo. If error occurs, generates error message.

Parameters
settingsElElement with settings message
requestInfoInformations about client request

Definition at line 1627 of file P2Processor.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Source cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processSource ( Element  subscriptionEl,
RequestInfo  requestInfo,
Subscription  subs 
)
private

Method process the element with subscription source and return it as object.

Parameters
subscriptionElelement with subscription source
requestInfoInformations about client request
subsSubscription to which this source belongs
Returns
subscription source object

Definition at line 1391 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processSubscribe ( Element  subscribeEl,
RequestInfo  requestInfo 
)
private

Method process the element with subscription to subscribe.

Parameters
subscribeElelement with subscription to subscribe
requestInfoInformations about client request

Definition at line 1064 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processSubscriptionsQuery ( Element  subscriptionsQueryEl,
RequestInfo  requestInfo 
)
private

Method process the element with request for list of subscriptions.

Parameters
subscriptionsQueryElelement with request for list of subscriptions
requestInfoInformations about client request

Definition at line 1191 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processSynchronize ( Element  synchronizeEl,
RequestInfo  requestInfo 
)
private

Method process the element with document for synchronize.

Parameters
synchronizeElelement with document for synchronize
requestInfoInformations about client request

Definition at line 1464 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processUnsubscribe ( Element  unsubscribeEl,
RequestInfo  requestInfo 
)
private

Method process the element with subscription to unsubscribe.

Parameters
unsubscribeElelement with subscription to unsubscribe
requestInfoInformations about client request

Definition at line 1128 of file P2Processor.java.

Here is the caller graph for this function:

ArrayList<String> cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processUsersQuerry ( Element  userQueryEl)
private

Method processes the element with a request for the users.

Parameters
userQueryElelement with request
Returns
array of query parameters

Definition at line 602 of file P2Processor.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.processXMLDocument ( Element  mainElement,
RequestInfo  requestInfo 
)

Method parses and process XML with messages from client.

Parameters
mainElementelement with messages from client
requestInfoinformations about client request

Definition at line 60 of file P2Processor.java.

Here is the call graph for this function:

Member Data Documentation

RequestInfo cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2Processor.requestInfo
private

Definition at line 46 of file P2Processor.java.


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