Package adams.flow.webservice
Class Transform
-
- 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.WebServiceClientConsumer<Spectrum>,adams.flow.webservice.WebServiceClientProducer<Spectrum>,adams.flow.webservice.WsdlUrlProvider,Serializable
public class Transform extends adams.flow.webservice.AbstractWebServiceClientTransformer<Spectrum,Spectrum>
Transforms 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_Actionthe actor to call.protected SpectralTransformServicem_Portthe port instance.protected SpectralTransformServiceServicem_Servicethe service instance.protected Spectrumm_SpectrumIninput spectrum
-
Constructor Summary
Constructors Constructor Description Transform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]accepts()Returns the classes that are accepted input.StringactionTipText()Description of this option.voidcleanUp()Cleans up the client.voiddefineOptions()Adds options to the internal list of options.protected voiddoQuery()Performs the actual webservice query.Class[]generates()Returns the classes that this client generates.StringgetAction()Returns the action (callable actor on the server side) to execute.URLgetWsdlLocation()Returns the WSDL location.StringglobalInfo()Returns a string describing the object.protected voidreset()Resets the scheme.voidsetAction(String value)Sets the action (callable actor on the server side) to execute.voidsetRequestData(Spectrum value)Sets the data for the request, if any.-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientTransformer
addResponseDataListener, alternativeURLTipText, connectionTimeoutTipText, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultInInterceptor, getDefaultOutInterceptor, getInInterceptor, getLastError, getOutInterceptor, getOwner, getQuickInfo, getReceiveTimeout, getResponseData, getUseAlternativeURL, hasLastError, hasResponseData, inInterceptorTipText, initialize, notifyResponseDataListeners, outInterceptorTipText, postQuery, preQuery, query, receiveTimeoutTipText, removeResponseDataListener, setAlternativeURL, setConnectionTimeout, setInInterceptor, setOutInterceptor, 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_Action
protected String m_Action
the actor to call.
-
m_SpectrumIn
protected Spectrum m_SpectrumIn
input spectrum
-
m_Service
protected transient SpectralTransformServiceService m_Service
the service instance.
-
m_Port
protected transient SpectralTransformService 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.
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classadams.core.option.AbstractOptionHandler
-
setAction
public void setAction(String value)
Sets the action (callable actor on the server side) to execute.- Parameters:
value- the action
-
getAction
public String getAction()
Returns the action (callable actor on the server side) to execute.- Returns:
- the action
-
actionTipText
public String actionTipText()
Description of this option.- Returns:
- description of the option
-
accepts
public Class[] accepts()
Returns the classes that are accepted input.- Returns:
- the classes that are accepted
-
generates
public Class[] generates()
Returns the classes that this client generates.- Returns:
- the classes
-
getWsdlLocation
public URL getWsdlLocation()
Returns the WSDL location.
-
setRequestData
public void setRequestData(Spectrum value)
Sets the data for the request, if any.- Parameters:
value- the request data
-
doQuery
protected void doQuery() throws ExceptionPerforms the actual webservice query.
-
-