IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.event
Class EventManagerServerInvoker

java.lang.Object
  extended bycom.ibm.btt.cs.invoker.base.BeanInvokerImpl
      extended bycom.ibm.btt.event.EventManagerServerInvoker
All Implemented Interfaces:
BeanInvoker, BeanInvokerForJavaRequest

public class EventManagerServerInvoker
extends BeanInvokerImpl
implements BeanInvokerForJavaRequest

The client server mechanism invokes the EventManagerServerInvoker when registering or de-registering remote interest in a specific event.


Field Summary
protected  java.lang.String sessionId
          Keeps the identification of the session between the client and the server
 
Fields inherited from class com.ibm.btt.cs.invoker.base.BeanInvokerImpl
ejbParameters
 
Constructor Summary
EventManagerServerInvoker()
           
 
Method Summary
 java.lang.Object createBeanInvokerProxy()
          Create a bean proxy.
 java.lang.Object executeEJB()
          It's the blank method should be overrode by end-user in extended class; In this method, end-user should create the Bean Invoker Proxy (EJBObject) from Proxy Pool or EJB Home Interface; and then hard code the method execution manually.
 void parseRequestData(java.lang.String requestData)
          Parse request data and invoke specific Event Manager operation
 java.lang.Object processRespondData(java.lang.Object ejbResult)
          Handler the EJB result, and transfer to client side.
 void setSessionObject(java.lang.Object sessionObject)
          This API will be used for set SessiobObject for Session management control.
 
Methods inherited from class com.ibm.btt.cs.invoker.base.BeanInvokerImpl
clear, getBeanInvokerProxy, getContext, getDelimitedTokenizer, getEjbParameter, getEjbParameters, getFixLengthTokenizer, getFormatter, getHomeObject, getRequestID, getResource, getSystemData, getValidation, getXMLFormatter, getXMLTokenizer, getXMLUnFormatter, getXMLUnFormatter, invoke, setBeanInvokerProxy, setContext, setEjbParameters, setRequestID, setResource, setSystemData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.cs.invoker.base.BeanInvoker
clear, getBeanInvokerProxy, getRequestID, getResource, getSystemData, invoke, setBeanInvokerProxy, setRequestID, setResource, setSystemData
 

Field Detail

sessionId

protected java.lang.String sessionId
Keeps the identification of the session between the client and the server

Constructor Detail

EventManagerServerInvoker

public EventManagerServerInvoker()
Method Detail

executeEJB

public java.lang.Object executeEJB()
                            throws java.lang.Exception
Description copied from class: BeanInvokerImpl
It's the blank method should be overrode by end-user in extended class; In this method, end-user should create the Bean Invoker Proxy (EJBObject) from Proxy Pool or EJB Home Interface; and then hard code the method execution manually.

Specified by:
executeEJB in class BeanInvokerImpl
Returns:
Object EJB invocation result
Throws:
java.lang.Exception

processRespondData

public java.lang.Object processRespondData(java.lang.Object ejbResult)
                                    throws DSEInvalidRequestException
Description copied from interface: BeanInvoker
Handler the EJB result, and transfer to client side. different result object for different Connectors:
  • Html Connector - Dummy Conetxt: End-user should map the EJB result to dummy context manually in this method
  • non-Html Connector - String: Code Generatation Tool will override this method. And generate formatting APIs according to the formatting definition.
  • Automaton - Conetxt: End-user should map the EJB result to Context manually in this method.
  • Specified by:
    processRespondData in interface BeanInvoker
    Specified by:
    processRespondData in class BeanInvokerImpl
    Returns:
    Object reponse data formatted
    Throws:
    DSEInvalidRequestException

    createBeanInvokerProxy

    public java.lang.Object createBeanInvokerProxy()
                                            throws DSEInvalidRequestException
    Description copied from interface: BeanInvoker
    Create a bean proxy. The implementation is provided in the subclass This method is called when the BeanInvokerFactory cannot find a bean proxy from the pool

    Specified by:
    createBeanInvokerProxy in interface BeanInvoker
    Specified by:
    createBeanInvokerProxy in class BeanInvokerImpl
    Throws:
    DSEInvalidRequestException
    See Also:
    BeanInvoker.createBeanInvokerProxy()

    parseRequestData

    public void parseRequestData(java.lang.String requestData)
                          throws DSEInvalidRequestException,
                                 DSEObjectNotFoundException
    Parse request data and invoke specific Event Manager operation

    Specified by:
    parseRequestData in interface BeanInvokerForJavaRequest
    Parameters:
    requestData - java.lang.String
    Throws:
    DSEInvalidRequestException
    DSEObjectNotFoundException

    setSessionObject

    public void setSessionObject(java.lang.Object sessionObject)
                          throws DSEInvalidRequestException,
                                 DSEObjectNotFoundException
    Description copied from interface: BeanInvokerForJavaRequest
    This API will be used for set SessiobObject for Session management control.

    Specified by:
    setSessionObject in interface BeanInvokerForJavaRequest
    Parameters:
    sessionObject - Session Object
    Throws:
    DSEObjectNotFoundException
    DSEInvalidRequestException

    IBM Branch Transformation Toolkit Javadoc

    (c) Copyright IBM Corporation 1998, 2005