com.ibm.dse.cs.servlet
Class CSReqProtocol

java.lang.Object
  |
  +--com.ibm.dse.cs.servlet.CSReqProtocol

public class CSReqProtocol
extends java.lang.Object
implements java.lang.Runnable

The CSReqProtocol class implements the send method. It is responsible for sending data from the client to the server. It runs the operation on the server side, and makes the appropriate updates on the client side.


Field Summary
protected  CSAsynchronousReplyListener aCSAsynchronousReplyListener
          Contains the listeners of the CSAsynchronousReplyEvent events.
 
Constructor Summary
CSReqProtocol()
          This constructor creates a CSReqProtocol object.
CSReqProtocol(boolean mode, ClientOperation aClientOperation, java.lang.Integer id, CSClient myCSClient, Semaphore aSemaphore)
          This constructor creates a CSReqProtocol object.
 
Method Summary
 void addCSAsynchronousReplyListener(CSAsynchronousReplyListener newListener)
          Adds the specified CSAsynchronousReplyListener to recieve CSAsynchronousReplyEvents from this class.
 void ClientProcess()
          Sends data from the client to the server
protected  void fireHandleCSAsynchronousReplyEvent(CSAsynchronousReplyEvent event)
          Method to support listener events.
 CSClient getCSClient()
          Gets the _myCSClient property (com.ibm.dse.clientserver.servlet.CSClient) value.
protected  boolean getIsAsynchronous()
          Gets the isAsynchronous property (boolean) value.
 void removeCSAsynchronousReplyListener(CSAsynchronousReplyListener newListener)
          Removes the specified CSAsynchronousReplyListener so that it no longer receives CSAsynchronousReplyEvents from this class.
 void run()
          Sends data to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aCSAsynchronousReplyListener

protected transient CSAsynchronousReplyListener aCSAsynchronousReplyListener
Contains the listeners of the CSAsynchronousReplyEvent events.
Constructor Detail

CSReqProtocol

public CSReqProtocol()
This constructor creates a CSReqProtocol object.

CSReqProtocol

public CSReqProtocol(boolean mode,
                     ClientOperation aClientOperation,
                     java.lang.Integer id,
                     CSClient myCSClient,
                     Semaphore aSemaphore)
              throws java.lang.Exception
This constructor creates a CSReqProtocol object.
Parameters:
mode - boolean
aClientOperation - ClientOperation
id - java.lang.Integer
aCSClient - com.ibm.dse.clientserver.CSClient
aSemaphore - com.ibm.dse.base.Semaphore
Method Detail

addCSAsynchronousReplyListener

public void addCSAsynchronousReplyListener(CSAsynchronousReplyListener newListener)
Adds the specified CSAsynchronousReplyListener to recieve CSAsynchronousReplyEvents from this class.
Parameters:
newListener - com.ibm.dse.clientserver.CSAsynchronousReplyListener

ClientProcess

public void ClientProcess()
                   throws java.lang.Exception
Sends data from the client to the server

fireHandleCSAsynchronousReplyEvent

protected void fireHandleCSAsynchronousReplyEvent(CSAsynchronousReplyEvent event)
Method to support listener events.
Parameters:
event - com.ibm.dse.clientserver.CSAsynchronousReplyEvent

getCSClient

public CSClient getCSClient()
Gets the _myCSClient property (com.ibm.dse.clientserver.servlet.CSClient) value.
Returns:
com.ibm.dse.clientserver.servlet.CSClient

getIsAsynchronous

protected boolean getIsAsynchronous()
Gets the isAsynchronous property (boolean) value.
Returns:
boolean

removeCSAsynchronousReplyListener

public void removeCSAsynchronousReplyListener(CSAsynchronousReplyListener newListener)
Removes the specified CSAsynchronousReplyListener so that it no longer receives CSAsynchronousReplyEvents from this class.
Parameters:
newListener - CSAsynchronousReplyListener

run

public void run()
Sends data to the server.
Specified by:
run in interface java.lang.Runnable