|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.agmodel.genericBroker.ServiceHTTP
An HTTP servlet wrapper interface to ServerRMI. The HTTP servlet wrapper is used when direct RMI connnections are blocked by firewalls. Each method below wraps a corresponding 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 | |
protected static String |
HOSTPARAMEXTENSION
The extension used by subclasses when generating the name of the parameter for the HTTP host name |
protected static String |
PORTPARAMEXTENSION
The extension used by subclasses when generating the name of the parameter for the HTTP port |
protected URL |
servlet
|
| Constructor Summary | |
ServiceHTTP(String host)
Create a linking class to communicate with the wrapper servlet on the default HTTP port (80). |
|
ServiceHTTP(String host,
int port)
Create a linking class to communicate with the wrapper servlet on a nominated port. |
|
| Method Summary | |
protected abstract String |
getServletPath()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final String HOSTPARAMEXTENSION
protected static final String PORTPARAMEXTENSION
protected URL servlet
| Constructor Detail |
public ServiceHTTP(String host,
int port)
throws GeneralException
host - the web server hosting the wrapper servlet
GeneralException
public ServiceHTTP(String host)
throws GeneralException
host - the web server hosting the wrapper servlet
GeneralException| Method Detail |
protected abstract String getServletPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||