net.agmodel.metBean
Class SpatialRequestBean
java.lang.Object
|
+--net.agmodel.utilBean.RequestBean
|
+--net.agmodel.metBean.MetRequestBean
|
+--net.agmodel.metBean.SpatialRequestBean
- All Implemented Interfaces:
- AllOrNothingListener, AllowSummarizingListener, ElementsListener, EventListener, IntervalListener, MapDisplayListener, RegionListener, ResolutionListener, Runnable
- public class SpatialRequestBean
- extends MetRequestBean
- implements RegionListener, MapDisplayListener, AllOrNothingListener
| Methods inherited from class net.agmodel.utilBean.RequestBean |
addDataListener, addIndeterminateListener, alreadyLoggedIn, clearListeners, fireDataArrivedEvent, fireDataRequestedEvent, fireIndeterminateEvent, listSourceDetails, login, login, loginToDataSource, removeDataListener, removeIndeterminateListener, run, runRetrieveThread |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metSourceID
protected String metSourceID
geographicalArea
protected transient GeographicalArea geographicalArea
allOrNothing
protected transient boolean allOrNothing
ub
static ResourceBundle ub
SpatialRequestBean
public SpatialRequestBean(Frame parent)
setUpBean
protected void setUpBean()
- Overrides:
setUpBean in class MetRequestBean
newRegion
public void newRegion(RegionEvent evt)
- Specified by:
newRegion in interface RegionListener
newMapDisplay
public void newMapDisplay(MapDisplayEvent evt)
- Specified by:
newMapDisplay in interface MapDisplayListener
newAllOrNothing
public void newAllOrNothing(AllOrNothingEvent evt)
- Specified by:
newAllOrNothing in interface AllOrNothingListener
readyToRequest
protected boolean readyToRequest()
- Overrides:
readyToRequest in class MetRequestBean
makeRequest
protected ServerRequest makeRequest()
- Description copied from class:
RequestBean
- Implemented by descendant requestBeans to create an appropriate request object for this kind of broker.
- Specified by:
makeRequest in class RequestBean
- Returns:
- a request to be sent to the broker.
suitableLogin
protected boolean suitableLogin(ServerRequest request)
throws RemoteException,
GeneralException
- Description copied from class:
RequestBean
- Implemented by descendant requestBeans to select which login mechanism to use.
Should either called login(GeographicalArea) or login(String), depending on whether spatial request bean or data source request bean
- Specified by:
suitableLogin in class RequestBean
- Returns:
- true if at least one database is accessible after the logging in process.
RemoteException
GeneralException
getData
protected ServerResult getData(ServerRequest request)
throws RemoteException,
GeneralException
- Description copied from class:
RequestBean
- Implemented by descendant requestBeans to call the broker to get the data.
These beans can use brokerRMI if the connection is RMI, or brokerHTTP if the connection is via HTTP.
- Specified by:
getData in class RequestBean
- Returns:
- a request to be sent to the broker.
RemoteException
GeneralException
fireSpecificEvent
protected void fireSpecificEvent(RequestBeanListener listener,
ServerResult result)
- Specified by:
fireSpecificEvent in class RequestBean