|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.commonfe.GenericFESession
public class GenericFESession
This is the Generic Session class. This session will handle all the generic requests from the Client.
| Field Summary | |
|---|---|
protected DBXmlUtility |
dbUtility
|
protected java.lang.String |
userName
|
| Constructor Summary | |
|---|---|
GenericFESession(MainSocketSessionFE mss)
|
|
| Method Summary | |
|---|---|
void |
close()
This method is invoked when the client closes the connection with the server. |
boolean |
receive(java.lang.String uid,
byte[] data)
This method is invoked when there is a request from this module's client counterpart. |
void |
run()
|
protected void |
sendDataToClient(java.lang.String customid,
java.lang.String uniqueid,
byte[] barr)
|
void |
setProcessingRequest(boolean flag)
Sets the processing request flag. |
void |
update(java.util.Observable source,
java.lang.Object notificationObj)
|
void |
update(java.lang.String userName,
int type,
java.lang.String id,
java.lang.String parent)
Updates the client with the information received. |
void |
update(java.lang.String userName,
int type,
java.lang.String id,
java.lang.String parent,
java.util.Properties props)
Updates the client with the information received. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DBXmlUtility dbUtility
protected java.lang.String userName
| Constructor Detail |
|---|
public GenericFESession(MainSocketSessionFE mss)
| Method Detail |
|---|
public void setProcessingRequest(boolean flag)
public boolean receive(java.lang.String uid,
byte[] data)
SocketSessionConnectionFE
receive in interface SocketSessionConnectionFEuid - the unique ID associated with this request.data - the actual data (request) sent by the client.
public void update(java.lang.String userName,
int type,
java.lang.String id,
java.lang.String parent)
update in interface DBXMLNodeListeneruserName - the user for whom the node has been updated.type - the type of operation perfomed on the node.id - the id of the node.parent - the parent of the node modified.
public void update(java.lang.String userName,
int type,
java.lang.String id,
java.lang.String parent,
java.util.Properties props)
public void update(java.util.Observable source,
java.lang.Object notificationObj)
update in interface java.util.Observerpublic void run()
run in interface java.lang.Runnablepublic void close()
SocketSessionConnectionFE
close in interface SocketSessionConnectionFE
protected void sendDataToClient(java.lang.String customid,
java.lang.String uniqueid,
byte[] barr)
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||