Class SimpleRatsMultiSpectrumService
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.multispectrum.SimpleRatsMultiSpectrumService
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,adams.db.DatabaseConnectionUser,OwnedByRatsMultiSpectrumServiceWS,Serializable,RatsMultiSpectrumService
public class SimpleRatsMultiSpectrumService extends adams.core.option.AbstractOptionHandler implements RatsMultiSpectrumService, OwnedByRatsMultiSpectrumServiceWS, adams.db.DatabaseConnectionUser
Class that implements the RATS multispectrum web service.- Version:
- $Revision: 2086 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.db.AbstractDatabaseConnectionm_DatabaseConnectionthe database connection.protected RatsMultiSpectrumServiceWSm_Ownerweb service object
-
Constructor Summary
Constructors Constructor Description SimpleRatsMultiSpectrumService()Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected adams.db.AbstractDatabaseConnectiongetDatabaseConnection()Determines the database connection in the flow.RatsMultiSpectrumServiceWSgetOwner()Returns the current owner of this webservice.StringglobalInfo()Returns a string for the GUI that describes this object.voidsetOwner(RatsMultiSpectrumServiceWS value)Sets the owner of this webservice.UploadResponseupload(UploadRequest parameters)Downloads a spectrum.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Owner
protected RatsMultiSpectrumServiceWS m_Owner
web service object
-
m_DatabaseConnection
protected adams.db.AbstractDatabaseConnection m_DatabaseConnection
the database connection.
-
-
Constructor Detail
-
SimpleRatsMultiSpectrumService
public SimpleRatsMultiSpectrumService()
Default Constructor.
NB: the owning webservice needs to get set before using this implemention, using thesetOwner(RatsMultiSpectrumServiceWS)method.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string for the GUI that describes this object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- the description
-
getDatabaseConnection
protected adams.db.AbstractDatabaseConnection getDatabaseConnection()
Determines the database connection in the flow.- Returns:
- the database connection to use
-
setOwner
public void setOwner(RatsMultiSpectrumServiceWS value)
Sets the owner of this webservice.- Specified by:
setOwnerin interfaceOwnedByRatsMultiSpectrumServiceWS- Parameters:
value- the owner
-
getOwner
public RatsMultiSpectrumServiceWS getOwner()
Returns the current owner of this webservice.- Specified by:
getOwnerin interfaceOwnedByRatsMultiSpectrumServiceWS- Returns:
- the owner, null if none set
-
upload
public UploadResponse upload(UploadRequest parameters)
Downloads a spectrum.- Specified by:
uploadin interfaceRatsMultiSpectrumService
-
-