net.agmodel.genericBroker
Class ServiceHTTP

java.lang.Object
  extended bynet.agmodel.genericBroker.ServiceHTTP
Direct Known Subclasses:
ServerHTTP

public abstract class ServiceHTTP
extends Object

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

Version:
1.0
Author:
Matthew Laurenson
See Also:
ServerRMI

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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceHTTP

public ServiceHTTP(String host,
                   int port)
            throws GeneralException
Create a linking class to communicate with the wrapper servlet on a nominated port. Usually port 80 (default HTTP) or 8080 (Tomcat servlet container default) are used.

Parameters:
host - the web server hosting the wrapper servlet
Throws:
GeneralException

ServiceHTTP

public ServiceHTTP(String host)
            throws GeneralException
Create a linking class to communicate with the wrapper servlet on the default HTTP port (80).

Parameters:
host - the web server hosting the wrapper servlet
Throws:
GeneralException


Copyright (C) NARC 2001 All Rights Reserved.