Package adams.flow.rest.echo
Class EchoClientSource
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.rest.AbstractRESTClientSource<String>
-
- adams.flow.rest.echo.EchoClientSource
-
- All Implemented Interfaces:
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
,AlternativeUrlSupporter
,RESTClient
,RESTClientProducer<String>
,Serializable
public class EchoClientSource extends AbstractRESTClientSource<String>
Source client for Echo REST service.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.flow.rest.AbstractRESTClientSource
m_AlternativeURL, m_ConnectionTimeout, m_LastError, m_Owner, m_ReceiveTimeout, m_ResponseData, m_ResponseDataListeners, m_UseAlternativeURL
-
-
Constructor Summary
Constructors Constructor Description EchoClientSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doQuery()
Performs the actual webservice query.Class[]
generates()
Returns the classes that this client generates.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.rest.AbstractRESTClientSource
addResponseDataListener, alternativeURLTipText, cleanUp, connectionTimeoutTipText, defineOptions, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getLastError, getOwner, getQuickInfo, getReceiveTimeout, getResponseData, getUseAlternativeURL, hasLastError, hasResponseData, initialize, notifyResponseDataListeners, postQuery, preQuery, query, receiveTimeoutTipText, removeResponseDataListener, setAlternativeURL, setConnectionTimeout, setOwner, setReceiveTimeout, setResponseData, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
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
-
generates
public Class[] generates()
Returns the classes that this client generates.- Returns:
- the classes
-
doQuery
protected void doQuery() throws Exception
Performs the actual webservice query.- Specified by:
doQuery
in classAbstractRESTClientSource<String>
- Throws:
Exception
- if accessing webservice fails for some reason
-
-