net.agmodel.chizudata
Class ChizuBrokerHTTP
java.lang.Object
|
+--net.agmodel.genericBroker.ServerHTTP
|
+--net.agmodel.genericBroker.GenericBrokerHTTP
|
+--net.agmodel.chizudata.ChizuBrokerHTTP
- public class ChizuBrokerHTTP
- extends net.agmodel.genericBroker.GenericBrokerHTTP
Provides firewall friendly wrapper for ChizuBroker
Description: Uses HTTP communication with a wrapper servlet
Copyright: Copyright (c) NARO 2002
Company:
| Fields inherited from class net.agmodel.genericBroker.GenericBrokerHTTP |
ALREADYLOGGEDIN, GETSOURCEDETAIL, LISTSOURCES, LISTSOURCESINREGION, LOGINWITHPASSWORD, LOGOUTALLSOURCES, LOGOUTOFSOURCE |
| Fields inherited from class net.agmodel.genericBroker.ServerHTTP |
CONNECT, CONNECTUSER, DISCONNECT, HOSTPARAMEXTENSION, PORTPARAMEXTENSION, servlet |
| Methods inherited from class net.agmodel.genericBroker.GenericBrokerHTTP |
alreadyLoggedIn, getSourceDetail, listSourceDetails, listSourceDetails, loginToDataSource, logOutOfAllSources, logOutOfSource, supplyData |
| Methods inherited from class net.agmodel.genericBroker.ServerHTTP |
disconnect, getConnection, getConnection |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GETREGION
public static final int GETREGION
HTTPHOSTPARAM
public static final String HTTPHOSTPARAM
HTTPPORTPARAM
public static final String HTTPPORTPARAM
ChizuBrokerHTTP
public ChizuBrokerHTTP(String host,
int port)
throws net.agmodel.utility.GeneralException
ChizuBrokerHTTP
public ChizuBrokerHTTP(String host)
throws net.agmodel.utility.GeneralException
getServletPath
protected String getServletPath()
- Overrides:
getServletPath in class net.agmodel.genericBroker.ServerHTTP
listChizuSourceDetails
public ChizuSourceDetail[] listChizuSourceDetails(String sessionID)
throws net.agmodel.utility.GeneralException
- Get the details for all the data sources in the broker.
- Parameters:
sessionID - the ID returned by getConnection- Returns:
- a list of sources. Returns an array of 0 length if the broker doesn't have any sources (not much use as a broker!)
listChizuSourceDetails
public ChizuSourceDetail[] listChizuSourceDetails(String sessionID,
net.agmodel.physical.GeographicalArea ofInterest)
throws net.agmodel.utility.GeneralException
- Get the details of the data sources in the broker that coincide with the area specified.
- Parameters:
sessionID - the ID returned by getConnectionofInterest - the area from which data is required- Returns:
- a list of sources whose GeographicalAreas overlap with the area of Interest. Returns an array of 0 length if no such sources exist.
getChizuSourceDetail
public ChizuSourceDetail getChizuSourceDetail(String sessionID,
String dataSourceID)
throws net.agmodel.utility.GeneralException
- Gets details about a single data source.
- Parameters:
sessionID - the ID returned by getConnection- Returns:
- the database details
- Throws:
IllegalArgumentException - if the data source ID is not known
getChizu
public ChizuResult getChizu(String sessionID,
ChizuRequest request)
throws net.agmodel.utility.GeneralException
- Gets a map to fulfil the request.
- Parameters:
request - - Returns:
-
- Throws:
RemoteException - net.agmodel.utility.GeneralException -