Package adams.flow.webservice
Class Put
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceClientSink<Spectrum>
-
- adams.flow.webservice.Put
-
- 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.WsdlUrlProvider
,Serializable
public class Put extends adams.flow.webservice.AbstractWebServiceClientSink<Spectrum>
Stores a spectrum.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SpectralPutService
m_Port
the port instance.protected SpectralPutServiceService
m_Service
the service instance.protected Spectrum
m_SpectrumIn
input spectrum
-
Constructor Summary
Constructors Constructor Description Put()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
Returns the classes that are accepted input.void
cleanUp()
Cleans up the client.protected void
doQuery()
Performs the actual webservice query.URL
getWsdlLocation()
Returns the WSDL location.String
globalInfo()
Returns a string describing the object.protected void
reset()
Resets the scheme.void
setRequestData(Spectrum value)
Sets the data for the request, if any.-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientSink
alternativeURLTipText, connectionTimeoutTipText, defineOptions, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultOutInterceptor, getLastError, getOutInterceptor, getOwner, getQuickInfo, getReceiveTimeout, getUseAlternativeURL, hasLastError, outInterceptorTipText, postQuery, preQuery, query, receiveTimeoutTipText, setAlternativeURL, setConnectionTimeout, setOutInterceptor, setOwner, setReceiveTimeout, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_SpectrumIn
protected Spectrum m_SpectrumIn
input spectrum
-
m_Service
protected transient SpectralPutServiceService m_Service
the service instance.
-
m_Port
protected transient SpectralPutService m_Port
the port instance.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
reset
protected void reset()
Resets the scheme.- Overrides:
reset
in classadams.core.option.AbstractOptionHandler
-
accepts
public Class[] accepts()
Returns the classes that are accepted input.- Returns:
- the classes that are accepted
-
getWsdlLocation
public URL getWsdlLocation()
Returns the WSDL location.- Specified by:
getWsdlLocation
in interfaceadams.flow.webservice.WsdlUrlProvider
- Specified by:
getWsdlLocation
in classadams.flow.webservice.AbstractWebServiceClientSink<Spectrum>
- Returns:
- the 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 Exception
Performs the actual webservice query.
-
cleanUp
public void cleanUp()
Cleans up the client.- Specified by:
cleanUp
in interfaceadams.core.CleanUpHandler
- Overrides:
cleanUp
in classadams.flow.webservice.AbstractWebServiceClientSink<Spectrum>
-
-