IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.servlet
Class CSReqProtocol

java.lang.Object
  extended by com.ibm.btt.cs.servlet.CSReqProtocol
All Implemented Interfaces:
java.lang.Runnable

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.
 java.lang.String httpErrorCode
           
protected  java.lang.String whenCode
           
 
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.
 java.lang.String getWhenCode()
          Gets the Error Code.
 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.
 void setClientOperation(ClientOperation aOp)
          Sets the Client Operation.
 void setCSClient(CSClient cs)
          Sets the CSClient.
 void setId(java.lang.Integer aId)
          Sets the Id.
 void setIsAsynchronousMode(boolean mode)
          Sets if the RequestProtocol is working in asynchronous mode.
 void setSemaphore(Semaphore aSem)
          Sets the Semaphore.
 void setWhenCode(java.lang.String aCode)
          Sets the Error Code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpErrorCode

public java.lang.String httpErrorCode

whenCode

protected java.lang.String whenCode

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
Throws:
java.lang.Exception
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

Throws:
java.lang.Exception

fireHandleCSAsynchronousReplyEvent

protected void fireHandleCSAsynchronousReplyEvent(CSAsynchronousReplyEvent event)
Method to support listener events.

Parameters:
event - com.ibm.dse.clientserver.CSAsynchronousReplyEvent

setWhenCode

public void setWhenCode(java.lang.String aCode)
Sets the Error Code.

Parameters:
aCode - String

getWhenCode

public java.lang.String getWhenCode()
Gets the Error Code.

Returns:
String

setIsAsynchronousMode

public void setIsAsynchronousMode(boolean mode)
Sets if the RequestProtocol is working in asynchronous mode.

Parameters:
mode - boolean

setId

public void setId(java.lang.Integer aId)
Sets the Id.

Parameters:
aId - Integer

setClientOperation

public void setClientOperation(ClientOperation aOp)
Sets the Client Operation.

Parameters:
aOp - ClientOperation

setCSClient

public void setCSClient(CSClient cs)
Sets the CSClient.

Parameters:
cs - CSClient

setSemaphore

public void setSemaphore(Semaphore aSem)
Sets the Semaphore.

Parameters:
aSem - Semaphore

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

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009