Package com.example.customerservice.flow
Class CustomersByNameCallableTransformer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceClientTransformer<I,O>
-
- adams.flow.webservice.AbstractWebServiceClientTransformerWithCallableTransformer<String,String>
-
- com.example.customerservice.flow.CustomersByNameCallableTransformer
-
- 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<String,String>,WebServiceClient,WebServiceClientConsumer<String>,WebServiceClientProducer<String>,WsdlUrlProvider,Serializable
public class CustomersByNameCallableTransformer extends AbstractWebServiceClientTransformerWithCallableTransformer<String,String>
Simple client for querying customer names and post-processing the names with a callable transformer.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_CustomerNamethe name of the customers to look up.protected CustomerServicem_Portthe port instance.protected Stringm_ProvidedCustomerNamethe provided customer name.protected CustomerServiceServicem_Servicethe service instance.-
Fields inherited from class adams.flow.webservice.AbstractWebServiceClientTransformerWithCallableTransformer
m_ActualTransformer, m_Transformer
-
Fields inherited from class adams.flow.webservice.AbstractWebServiceClientTransformer
m_AlternativeURL, m_ConnectionTimeout, m_InInterceptor, m_LastError, m_OutInterceptor, m_Owner, m_ReceiveTimeout, m_ResponseData, m_ResponseDataListeners, m_UseAlternativeURL
-
-
Constructor Summary
Constructors Constructor Description CustomersByNameCallableTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]accepts()Returns the classes that are accepted input.voidcleanUp()Cleans up the client.StringcustomerNameTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.protected voiddoQuery()Queries the webservice.Class[]generates()Returns the classes that this processor generates.StringgetCustomerName()Returns the customer name to look up.URLgetWsdlLocation()Returns the WSDL location.StringglobalInfo()Returns a string describing the object.protected voidreset()Resets the scheme.voidsetCustomerName(String value)Sets the customer name to look up.voidsetRequestData(String value)Sets the data for the request, if any.-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientTransformerWithCallableTransformer
applyTransformer, getTransformer, preQuery, setTransformer, transformerTipText
-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientTransformer
addResponseDataListener, alternativeURLTipText, connectionTimeoutTipText, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultInInterceptor, getDefaultOutInterceptor, getInInterceptor, getLastError, getOutInterceptor, getOwner, getQuickInfo, getReceiveTimeout, getResponseData, getUseAlternativeURL, hasLastError, hasResponseData, inInterceptorTipText, initialize, notifyResponseDataListeners, outInterceptorTipText, postQuery, query, receiveTimeoutTipText, removeResponseDataListener, setAlternativeURL, setConnectionTimeout, setInInterceptor, setOutInterceptor, setOwner, setReceiveTimeout, setResponseData, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_CustomerName
protected String m_CustomerName
the name of the customers to look up.
-
m_ProvidedCustomerName
protected String m_ProvidedCustomerName
the provided customer name.
-
m_Service
protected transient CustomerServiceService m_Service
the service instance.
-
m_Port
protected transient CustomerService m_Port
the port instance.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classAbstractWebServiceClientTransformerWithCallableTransformer<String,String>
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classadams.core.option.AbstractOptionHandler
-
setCustomerName
public void setCustomerName(String value)
Sets the customer name to look up.- Parameters:
value- the name
-
getCustomerName
public String getCustomerName()
Returns the customer name to look up.- Returns:
- the name
-
customerNameTipText
public String customerNameTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
accepts
public Class[] accepts()
Returns the classes that are accepted input.- Returns:
- the classes that are accepted, null if no input
-
setRequestData
public void setRequestData(String value)
Sets the data for the request, if any.- Parameters:
value- the request data
-
getWsdlLocation
public URL getWsdlLocation()
Returns the WSDL location.- Specified by:
getWsdlLocationin interfaceWsdlUrlProvider- Specified by:
getWsdlLocationin classAbstractWebServiceClientTransformer<String,String>- Returns:
- the location
-
doQuery
protected void doQuery() throws ExceptionQueries the webservice.- Specified by:
doQueryin classAbstractWebServiceClientTransformer<String,String>- Throws:
Exception- if accessing webservice fails for some reason
-
generates
public Class[] generates()
Returns the classes that this processor generates.- Returns:
- the classes, null if no output
-
cleanUp
public void cleanUp()
Cleans up the client.- Specified by:
cleanUpin interfaceadams.core.CleanUpHandler- Overrides:
cleanUpin classAbstractWebServiceClientTransformer<String,String>
-
-