Package adams.flow.rest.echo
Class EchoClientSink
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.rest.AbstractRESTClientSink<String>
-
- adams.flow.rest.echo.EchoClientSink
-
- 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
,RESTClientConsumer<String>
,Serializable
public class EchoClientSink extends AbstractRESTClientSink<String>
Sink client for Echo REST service.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_RequestData
the request data.-
Fields inherited from class adams.flow.rest.AbstractRESTClientSink
m_AlternativeURL, m_ConnectionTimeout, m_LastError, m_Owner, m_ReceiveTimeout, m_UseAlternativeURL
-
-
Constructor Summary
Constructors Constructor Description EchoClientSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
Returns the classes that are accepted input.protected void
doQuery()
Performs the actual webservice query.String
globalInfo()
Returns a string describing the object.void
setRequestData(String value)
Sets the data for the request, if any.-
Methods inherited from class adams.flow.rest.AbstractRESTClientSink
alternativeURLTipText, cleanUp, connectionTimeoutTipText, defineOptions, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getLastError, getOwner, getQuickInfo, getReceiveTimeout, getUseAlternativeURL, hasLastError, postQuery, preQuery, query, receiveTimeoutTipText, setAlternativeURL, setConnectionTimeout, setOwner, setReceiveTimeout, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, 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_RequestData
protected String m_RequestData
the request data.
-
-
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
-
accepts
public Class[] accepts()
Returns the classes that are accepted input.- Returns:
- the classes that are accepted
-
setRequestData
public void setRequestData(String 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.- Specified by:
doQuery
in classAbstractRESTClientSink<String>
- Throws:
Exception
- if accessing webservice fails for some reason
-
-