edu.cuny.cat.comm
Class CatpProactiveSession
java.lang.Object
  
edu.cuny.cat.comm.Session<CatpMessage>
      
edu.cuny.cat.comm.CatpProactiveSession
- Direct Known Subclasses: 
 - GameClient.CheckInSession, GameClient.SubscribeToSpecialistSession, MarketClient.TransactionProactiveSession, TimableCatpProactiveSession
 
public class CatpProactiveSession
- extends Session<CatpMessage>
 
This class processes a request/response session initiated by the current
 party.
- Version:
 
  - $Revision: 1.16 $
 
- Author:
 
  - Jinzhong Niu
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
request
protected CatpRequest request
completed
protected boolean completed
- indicates whether or not this session has completed or not.
- See Also:
 processResponse(CatpResponse)
 
CatpProactiveSession
public CatpProactiveSession(Connection<CatpMessage> connection)
CatpProactiveSession
public CatpProactiveSession(Connection<CatpMessage> connection,
                            CatpRequest request)
sendRequest
public void sendRequest()
                 throws CatException
- Throws:
 CatException
 
processResponse
public void processResponse(CatpResponse response)
                     throws CatException
- Throws:
 CatException
 
forceOut
public boolean forceOut()
- Description copied from class: 
Session 
- cleans up if this session has to terminate abnormally.
- Overrides:
 forceOut in class Session<CatpMessage>
 
- Returns:
 - if the early termination is successful or not.
 
 
 
isCompleted
public boolean isCompleted()
 
setCompleted
public void setCompleted(boolean completed)
 
getRequest
public CatpRequest getRequest()
 
setRequest
public void setRequest(CatpRequest request)