Package adams.flow.webservice
Class AbstractWebServiceClientSinkWithCallableTransformer<I>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceClientSink<I>
-
- adams.flow.webservice.AbstractWebServiceClientSinkWithCallableTransformer<I>
-
- Type Parameters:
I
- the type of input data to handle
- 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
,AlternativeUrlSupporter
,CallableTransformerSupport<I,I>
,WebServiceClient
,WebServiceClientConsumer<I>
,WsdlUrlProvider
,Serializable
public abstract class AbstractWebServiceClientSinkWithCallableTransformer<I> extends AbstractWebServiceClientSink<I> implements CallableTransformerSupport<I,I>
Ancestor for sinks that use a callable transformer to further process the data.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.flow.core.Actor
m_ActualTransformer
the actual transformer to use.protected adams.flow.core.CallableActorReference
m_Transformer
the callable transformer.-
Fields inherited from class adams.flow.webservice.AbstractWebServiceClientSink
m_AlternativeURL, m_ConnectionTimeout, m_LastError, m_OutInterceptor, m_Owner, m_ReceiveTimeout, m_UseAlternativeURL
-
-
Constructor Summary
Constructors Constructor Description AbstractWebServiceClientSinkWithCallableTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I
applyTransformer(I data)
Applies the transformer to the data.void
defineOptions()
Adds options to the internal list of options.adams.flow.core.CallableActorReference
getTransformer()
Returns the callable transformer in use.protected void
preQuery()
Hook method before querying the webservice.void
setTransformer(adams.flow.core.CallableActorReference value)
Sets the callable transformer to use.String
transformerTipText()
Returns the tip text for this property.-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientSink
alternativeURLTipText, cleanUp, connectionTimeoutTipText, doQuery, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultOutInterceptor, getLastError, getOutInterceptor, getOwner, getQuickInfo, getReceiveTimeout, getUseAlternativeURL, getWsdlLocation, hasLastError, outInterceptorTipText, postQuery, query, receiveTimeoutTipText, setAlternativeURL, setConnectionTimeout, setOutInterceptor, setOwner, setReceiveTimeout, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.flow.webservice.WebServiceClientConsumer
accepts, setRequestData
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractWebServiceClientSink<I>
-
setTransformer
public void setTransformer(adams.flow.core.CallableActorReference value)
Sets the callable transformer to use.- Specified by:
setTransformer
in interfaceCallableTransformerSupport<I,I>
- Parameters:
value
- the reference
-
getTransformer
public adams.flow.core.CallableActorReference getTransformer()
Returns the callable transformer in use.- Specified by:
getTransformer
in interfaceCallableTransformerSupport<I,I>
- Returns:
- the reference
-
transformerTipText
public String transformerTipText()
Returns the tip text for this property.- Specified by:
transformerTipText
in interfaceCallableTransformerSupport<I,I>
- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
preQuery
protected void preQuery() throws Exception
Hook method before querying the webservice.
Tries to obtain and initialize the callable transformer.- Overrides:
preQuery
in classAbstractWebServiceClientSink<I>
- Throws:
Exception
- if it fails for some reason
-
applyTransformer
public I applyTransformer(I data) throws Exception
Applies the transformer to the data.- Specified by:
applyTransformer
in interfaceCallableTransformerSupport<I,I>
- Parameters:
data
- the data to process- Returns:
- the processed data
- Throws:
Exception
- if it fails for some reason
-
-