Class AbstractWebserviceResponseDataPostProcessor<T>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.standalone.rats.output.webservice.AbstractWebserviceResponseDataPostProcessor<T>
-
- Type Parameters:
T- the type of response data to post-process
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.ErrorProvider,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,adams.flow.core.FlowContextHandler,Serializable
- Direct Known Subclasses:
NullPostProcessor
public abstract class AbstractWebserviceResponseDataPostProcessor<T> extends adams.core.option.AbstractOptionHandler implements adams.flow.core.FlowContextHandler, adams.core.ErrorProviderAncestor for schemes that post-process the response data received from the server end of the webservice. E.g., for handling potential error messages in the response rather than just quietly ignoring them.- 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.Actorm_FlowContextthe flow context.protected Stringm_LastErrorthe last error that was generated.
-
Constructor Summary
Constructors Constructor Description AbstractWebserviceResponseDataPostProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoPostProcess(T response)For post-processing the response data.adams.flow.core.ActorgetFlowContext()Returns the flow context, if any.StringgetLastError()Returns the last error that occurred.booleanhasLastError()Checks whether there was an error with the last call.voidpostProcess(T response)For post-processing the response data.voidsetFlowContext(adams.flow.core.Actor value)Sets the flow context.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, 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
-
-
-
-
Field Detail
-
m_FlowContext
protected adams.flow.core.Actor m_FlowContext
the flow context.
-
m_LastError
protected String m_LastError
the last error that was generated.
-
-
Method Detail
-
setFlowContext
public void setFlowContext(adams.flow.core.Actor value)
Sets the flow context.- Specified by:
setFlowContextin interfaceadams.flow.core.FlowContextHandler- Parameters:
value- the actor
-
getFlowContext
public adams.flow.core.Actor getFlowContext()
Returns the flow context, if any.- Specified by:
getFlowContextin interfaceadams.flow.core.FlowContextHandler- Returns:
- the actor, null if none available
-
hasLastError
public boolean hasLastError()
Checks whether there was an error with the last call.- Specified by:
hasLastErrorin interfaceadams.core.ErrorProvider- Returns:
- true if there was an error
- See Also:
getLastError()
-
getLastError
public String getLastError()
Returns the last error that occurred.- Specified by:
getLastErrorin interfaceadams.core.ErrorProvider- Returns:
- the last error, null if none occurred
-
doPostProcess
protected abstract void doPostProcess(T response)
For post-processing the response data.- Parameters:
response- the data to post-process
-
postProcess
public void postProcess(T response)
For post-processing the response data.- Parameters:
response- the data to post-process
-
-