net.agmodel.metsoap
Class StationMetRequest
java.lang.Object
|
+--net.agmodel.metsoap.MetRequest
|
+--net.agmodel.metsoap.StationMetRequest
- public class StationMetRequest
- extends MetRequest
A request for a set of meteorological data over a particular time period from a particular station
Conforms to the JavaBean pattern to ensure easy SOAP serialization
Copyright (c)2002 National Agricultural Research Center
| Methods inherited from class net.agmodel.metsoap.MetRequest |
getInterval, getLanguage, getMissingValueIndicator, getRequestedElements, getResolution, isSummarisingAllowed, setInterval, setLanguage, setMissingValueIndicator, setRequestedElements, setResolution, setSummarisingAllowed |
StationMetRequest
public StationMetRequest()
setSourceID
public void setSourceID(String aSourceID)
- Specifies the identifier of the database from which the data is to come.
Identifiers are assigned by MetBroker
At the time of writing the following are defined:
Japan
amedas
prefmetdb
wakayama
mamedas
USA
fawn
gaemn
oregonIPPC
New Zealand
hortplus
clidb
New Zealand
sasa
Korea
snuwdms
Norway
planteforsk
An up-to-date list of databases can be requested by an application using MetSoapRemoteInterface.listMetSources(String)
- Parameters:
aSourceID -
getSourceID
public String getSourceID()
- Get the ID of the source to be queried.
- Returns:
- the ID
setStationID
public void setStationID(String aStationID)
- Specifies the ID of the station to be queried.
- Parameters:
the - ID
getStationID
public String getStationID()
- Get the ID of the station to be queried.
- Returns:
- the ID
setUsername
public void setUsername(String aUsername)
- Specify a username if required by the database you are using.
Many MetBroker databases don't require that a username and password be specified
- Parameters:
aUsername - a valid username on the remote database- See Also:
setPassword(String)
getUsername
public String getUsername()
setPassword
public void setPassword(String aPassword)
- Specify the password to be used in conjunction with the username.
Note that usernames and passwords are not encrypted in transit, so only readonly access should be allowed to such accounts.
- Parameters:
aPassword - the correct password to accompany the username on the remote database- See Also:
setUsername(String)
getPassword
public String getPassword()