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


Constructor Summary
StationMetRequest()
           
 
Method Summary
 String getPassword()
           
 String getSourceID()
          Get the ID of the source to be queried.
 String getStationID()
          Get the ID of the station to be queried.
 String getUsername()
           
 void setPassword(String aPassword)
          Specify the password to be used in conjunction with the username.
 void setSourceID(String aSourceID)
          Specifies the identifier of the database from which the data is to come.
 void setStationID(String aStationID)
          Specifies the ID of the station to be queried.
 void setUsername(String aUsername)
          Specify a username if required by the database you are using.
 
Methods inherited from class net.agmodel.metsoap.MetRequest
getInterval, getLanguage, getMissingValueIndicator, getRequestedElements, getResolution, isSummarisingAllowed, setInterval, setLanguage, setMissingValueIndicator, setRequestedElements, setResolution, setSummarisingAllowed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationMetRequest

public StationMetRequest()
Method Detail

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()