Package adams.flow.webservice
Class AbstractWebServiceProviderWithCallableTransformer<I,O>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceProvider
-
- adams.flow.webservice.AbstractWebServiceProviderWithCallableTransformer<I,O>
-
- Type Parameters:
I
- the type of data that the callable transformer gets as inputO
- the type of data that the callable transfomer generates
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,adams.flow.core.FlowContextHandler
,CallableTransformerSupport<I,O>
,WebServiceProvider
,Serializable
public abstract class AbstractWebServiceProviderWithCallableTransformer<I,O> extends AbstractWebServiceProvider implements CallableTransformerSupport<I,O>
Ancestor for webservice providers that processes the incoming request data with a 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.AbstractWebServiceProvider
m_InInterceptor, m_OutInterceptor, m_Owner, m_Running, m_URL
-
-
Constructor Summary
Constructors Constructor Description AbstractWebServiceProviderWithCallableTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
applyTransformer(I data)
Applies the transformer to the data.protected void
check()
Performs some initial checks before starting the service.void
defineOptions()
Adds options to the internal list of options.adams.flow.core.CallableActorReference
getTransformer()
Returns the callable transformer in use.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.AbstractWebServiceProvider
cleanUp, configureInterceptors, configureTLS, doStart, doStop, getDefaultInInterceptor, getDefaultOutInterceptor, getDefaultURL, getFlowContext, getInInterceptor, getOutInterceptor, getURL, inInterceptorTipText, isRunning, log, outInterceptorTipText, setFlowContext, setInInterceptor, setOutInterceptor, setURL, start, stop, URLTipText
-
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
-
-
-
-
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 classAbstractWebServiceProvider
-
setTransformer
public void setTransformer(adams.flow.core.CallableActorReference value)
Sets the callable transformer to use.- Specified by:
setTransformer
in interfaceCallableTransformerSupport<I,O>
- Parameters:
value
- the reference
-
getTransformer
public adams.flow.core.CallableActorReference getTransformer()
Returns the callable transformer in use.- Specified by:
getTransformer
in interfaceCallableTransformerSupport<I,O>
- Returns:
- the reference
-
transformerTipText
public String transformerTipText()
Returns the tip text for this property.- Specified by:
transformerTipText
in interfaceCallableTransformerSupport<I,O>
- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
check
protected void check()
Performs some initial checks before starting the service.- Overrides:
check
in classAbstractWebServiceProvider
-
applyTransformer
public O applyTransformer(I data) throws Exception
Applies the transformer to the data.- Specified by:
applyTransformer
in interfaceCallableTransformerSupport<I,O>
- Parameters:
data
- the data to process- Returns:
- the processed data
- Throws:
Exception
- if it fails for some reason
-
-