com.cinecolombia.cinecolombia.control.web
Class CinecolombiaControllerProxy

java.lang.Object
  |
  +--com.cinecolombia.cinecolombia.control.web.CinecolombiaControllerProxy
All Implemented Interfaces:
java.io.Serializable

public class CinecolombiaControllerProxy
extends java.lang.Object
implements java.io.Serializable

This class is essentially just a proxy object that calls methods on the EJB tier using the CinecolombiaControllerEJB object. All the methods that access the EJB are synchronized so that concurrent requests do not happen to the stateful session bean.

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Junio 2003

Field Summary
private  Debug debug
           
private  ModelManager mm
           
private  CinecolombiaController sccEjb
           
private  javax.servlet.http.HttpSession session
           
 
Constructor Summary
CinecolombiaControllerProxy()
          Constructor
CinecolombiaControllerProxy(javax.servlet.http.HttpSession session)
          constructor for an HTTP client.
 
Method Summary
 java.util.Collection handleEvent(CinecolombiaEvent ese)
          feeds the specified event to the state machine of the business logic: sends the event to the controller ejb and gets a list with names of Model objects who were updated
 void remove()
          frees up all the resources associated with this controller and destroys itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mm

private ModelManager mm

sccEjb

private CinecolombiaController sccEjb

session

private javax.servlet.http.HttpSession session

debug

private Debug debug
Constructor Detail

CinecolombiaControllerProxy

public CinecolombiaControllerProxy()
Constructor


CinecolombiaControllerProxy

public CinecolombiaControllerProxy(javax.servlet.http.HttpSession session)
constructor for an HTTP client.

Parameters:
session - web session
Method Detail

handleEvent

public java.util.Collection handleEvent(CinecolombiaEvent ese)
                                 throws CinecolombiaEventException
feeds the specified event to the state machine of the business logic: sends the event to the controller ejb and gets a list with names of Model objects who were updated

Parameters:
ese - is the current event
Returns:
a list of models that got updated because of the processing of this event. In addition, the first element of the list contains the service answer (or the "" string when this answer is not required)
Throws:
CinecolombiaEventException

remove

public void remove()
frees up all the resources associated with this controller and destroys itself.