|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.agmodel.genericBroker.ServiceHTTP
|
+--net.agmodel.genericBroker.ServerHTTP
An HTTP servlet wrapper interface to a remote RMI-based server. The HTTP servlet wrapper is used when direct RMI connnections are blocked by firewalls. Each method below corresponding to a ServerRMI method. Method parameters are serialized and sent using HTTP to a wrapper servlet which calls the corresponding ServerRMI method and returns the results. int constants are used to identify which ServerRMI method to call
ServerRMI| Field Summary | |
static int |
CONNECT
call ServerRMI.connect(String, String) |
static int |
CONNECTUSER
call ServerRMI.connect(String, String, String, String, int) |
static int |
DISCONNECT
call ServerRMI.disconnect(String) |
| Fields inherited from class net.agmodel.genericBroker.ServiceHTTP |
HOSTPARAMEXTENSION, PORTPARAMEXTENSION, servlet |
| Constructor Summary | |
ServerHTTP(String host)
Create a linking class to communicate with the wrapper servlet on the default HTTP port (80). |
|
ServerHTTP(String host,
int port)
Create a linking class to communicate with the wrapper servlet on a nominated port. |
|
| Method Summary | |
void |
disconnect(String sessionID)
Disconnect from MetBroker |
String |
getConnection(String clientInfo,
String language)
Establishes a broker session for the client application. |
String |
getConnection(String clientInfo,
String language,
String brokerUser,
String brokerPassword,
int userType)
Establishes a broker session for the client application. |
| Methods inherited from class net.agmodel.genericBroker.ServiceHTTP |
getServletPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CONNECT
public static final int CONNECTUSER
public static final int DISCONNECT
| Constructor Detail |
public ServerHTTP(String host,
int port)
throws GeneralException
host - the web server hosting the wrapper servlet
GeneralException
public ServerHTTP(String host)
throws GeneralException
host - the web server hosting the wrapper servlet
GeneralException| Method Detail |
public String getConnection(String clientInfo,
String language)
throws IOException,
GeneralException
clientInfo - the client application name (useful for debugging)language - the language to use for the session (eg for database names)
IOException
GeneralException
public String getConnection(String clientInfo,
String language,
String brokerUser,
String brokerPassword,
int userType)
throws GeneralException
brokerUser - the username for the brokerbrokerPassword - the password for the brokerlanguage - the language to use for the session (eg for station names)
GeneralException
public void disconnect(String sessionID)
throws GeneralException
sessionID - the ID returned by getConnection
GeneralException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||