org.gwe.api
Class Session4ServerAPI<API_TYPE extends java.rmi.Remote,SESSION_ID>

java.lang.Object
  extended by org.gwe.api.Session4ServerAPI<API_TYPE,SESSION_ID>
Direct Known Subclasses:
Session4ClientAPI, Session4MonitorAPI

public class Session4ServerAPI<API_TYPE extends java.rmi.Remote,SESSION_ID>
extends java.lang.Object

Since:
Dec 17, 2007
Author:
Marco Ruiz

Field Summary
protected  SESSION_ID sessionId
           
 
Constructor Summary
protected Session4ServerAPI(java.lang.Class<API_TYPE> serverAPIClass, ServerAPILink apiLink, SESSION_ID sessionId)
           
 
Method Summary
 void connect()
           
<RETURN_TYPE>
RETURN_TYPE
executeRequest(SessionRequest<API_TYPE,RETURN_TYPE> req)
           
protected  API_TYPE getServerAPI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionId

protected SESSION_ID sessionId
Constructor Detail

Session4ServerAPI

protected Session4ServerAPI(java.lang.Class<API_TYPE> serverAPIClass,
                            ServerAPILink apiLink,
                            SESSION_ID sessionId)
Method Detail

executeRequest

public <RETURN_TYPE> RETURN_TYPE executeRequest(SessionRequest<API_TYPE,RETURN_TYPE> req)
                           throws ServerAPIConnectionException,
                                  java.rmi.RemoteException,
                                  PasswordMismatchException
Throws:
ServerAPIConnectionException
java.rmi.RemoteException
PasswordMismatchException

connect

public void connect()
             throws ServerAPIConnectionException
Throws:
ServerAPIConnectionException

getServerAPI

protected API_TYPE getServerAPI()
                                                 throws ServerAPIConnectionException
Throws:
ServerAPIConnectionException


Copyright © 2007-2009. All Rights Reserved.