Package adams.flow.webservice
Class Get
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceClientSource<Spectrum>
-
- adams.flow.webservice.Get
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler,adams.core.CleanUpHandler,adams.core.Destroyable,adams.core.ErrorProvider,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.SizeOfHandler,adams.flow.webservice.AlternativeUrlSupporter,adams.flow.webservice.WebServiceClient,adams.flow.webservice.WebServiceClientProducer<Spectrum>,adams.flow.webservice.WsdlUrlProvider,Serializable
public class Get extends adams.flow.webservice.AbstractWebServiceClientSource<Spectrum>
Gets a spectrum.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_Formatthe spectrum format.protected Stringm_IDthe spectrum ID.protected SpectralGetServicem_Portthe port instance.protected SpectralGetServiceServicem_Servicethe service instance.
-
Constructor Summary
Constructors Constructor Description Get()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Cleans up the client.voiddefineOptions()Adds options to the internal list of options.protected voiddoQuery()Performs the actual webservice query.StringformatTipText()Description of this option.Class[]generates()Returns the classes that this client generates.StringgetFormat()Returns the format of the spectrum to retrieve.StringgetID()Returns the ID of the spectrum to retrieve.URLgetWsdlLocation()Returns the WSDL location.StringglobalInfo()Returns a string describing the object.StringIDTipText()Description of this option.protected voidreset()Resets the scheme.voidsetFormat(String value)Sets the format of the spectrum to retrievevoidsetID(String value)Sets the ID of the spectrum to retrieve-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientSource
addResponseDataListener, alternativeURLTipText, connectionTimeoutTipText, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultInInterceptor, getInInterceptor, getLastError, getOwner, getQuickInfo, getReceiveTimeout, getResponseData, getUseAlternativeURL, hasLastError, hasResponseData, inInterceptorTipText, initialize, notifyResponseDataListeners, postQuery, preQuery, query, receiveTimeoutTipText, removeResponseDataListener, setAlternativeURL, setConnectionTimeout, setInInterceptor, setOwner, setReceiveTimeout, setResponseData, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_ID
protected String m_ID
the spectrum ID.
-
m_Format
protected String m_Format
the spectrum format.
-
m_Service
protected transient SpectralGetServiceService m_Service
the service instance.
-
m_Port
protected transient SpectralGetService m_Port
the port instance.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.flow.webservice.AbstractWebServiceClientSource<Spectrum>
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classadams.core.option.AbstractOptionHandler
-
setID
public void setID(String value)
Sets the ID of the spectrum to retrieve- Parameters:
value- the ID
-
getID
public String getID()
Returns the ID of the spectrum to retrieve.- Returns:
- the ID
-
IDTipText
public String IDTipText()
Description of this option.- Returns:
- description of the option
-
setFormat
public void setFormat(String value)
Sets the format of the spectrum to retrieve- Parameters:
value- the format
-
getFormat
public String getFormat()
Returns the format of the spectrum to retrieve.- Returns:
- the format
-
formatTipText
public String formatTipText()
Description of this option.- Returns:
- description of the option
-
generates
public Class[] generates()
Returns the classes that this client generates.- Returns:
- the classes
-
getWsdlLocation
public URL getWsdlLocation()
Returns the WSDL location.- Specified by:
getWsdlLocationin interfaceadams.flow.webservice.WsdlUrlProvider- Specified by:
getWsdlLocationin classadams.flow.webservice.AbstractWebServiceClientSource<Spectrum>- Returns:
- the location
-
doQuery
protected void doQuery() throws ExceptionPerforms the actual webservice query.
-
cleanUp
public void cleanUp()
Cleans up the client.- Specified by:
cleanUpin interfaceadams.core.CleanUpHandler- Overrides:
cleanUpin classadams.flow.webservice.AbstractWebServiceClientSource<Spectrum>
-
-