Package adams.flow.webservice
Interface WebServiceClientProducer<T>
-
- Type Parameters:
T
- the type of output data to use
- All Superinterfaces:
adams.core.CleanUpHandler
,adams.core.Destroyable
,adams.core.ErrorProvider
,adams.core.option.OptionHandler
,WebServiceClient
- All Known Implementing Classes:
AbstractWebServiceClientSource
,AbstractWebServiceClientSourceWithCallableTransformer
,AbstractWebServiceClientTransformer
,AbstractWebServiceClientTransformerWithCallableTransformer
,CustomersByName
,CustomersByNameCallableTransformer
public interface WebServiceClientProducer<T> extends WebServiceClient
Interface for classes that use webservices.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addResponseDataListener(WebServiceClientProducerResponseDataListener l)
Adds the listener for response data being received.Class[]
generates()
Returns the classes that this client generates.AbstractInInterceptorGenerator
getInInterceptor()
Returns the interceptor for incoming messages (actually generator, since interceptors aren't serializable).T
getResponseData()
Returns the response data, if any.boolean
hasResponseData()
Checks whether there is any response data to be collected.void
removeResponseDataListener(WebServiceClientProducerResponseDataListener l)
Removes the listener for response data being received.void
setInInterceptor(AbstractInInterceptorGenerator value)
Sets the interceptor for incoming messages (actually generator, since interceptors aren't serializable).void
setResponseData(T value)
Sets the response data.-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.flow.webservice.WebServiceClient
getConnectionTimeout, getOwner, getReceiveTimeout, query, setConnectionTimeout, setOwner, setReceiveTimeout
-
-
-
-
Method Detail
-
addResponseDataListener
void addResponseDataListener(WebServiceClientProducerResponseDataListener l)
Adds the listener for response data being received.- Parameters:
l
- the listener to add
-
removeResponseDataListener
void removeResponseDataListener(WebServiceClientProducerResponseDataListener l)
Removes the listener for response data being received.- Parameters:
l
- the listener to remove
-
generates
Class[] generates()
Returns the classes that this client generates.- Returns:
- the classes
-
hasResponseData
boolean hasResponseData()
Checks whether there is any response data to be collected.- Returns:
- true if data can be collected
- See Also:
getResponseData()
-
setResponseData
void setResponseData(T value)
Sets the response data.- Parameters:
value
- the response data
-
getResponseData
T getResponseData()
Returns the response data, if any.- Returns:
- the response data
-
setInInterceptor
void setInInterceptor(AbstractInInterceptorGenerator value)
Sets the interceptor for incoming messages (actually generator, since interceptors aren't serializable).- Parameters:
value
- the interceptor
-
getInInterceptor
AbstractInInterceptorGenerator getInInterceptor()
Returns the interceptor for incoming messages (actually generator, since interceptors aren't serializable).- Returns:
- the interceptor
-
-