Package com.example.customerservice.flow
Class UpdateCustomer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceClientSink<String>
-
- com.example.customerservice.flow.UpdateCustomer
-
- 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
,WebServiceClient
,WebServiceClientConsumer<String>
,WsdlUrlProvider
,Serializable
public class UpdateCustomer extends AbstractWebServiceClientSink<String>
Simple client for querying customer names.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_CustomerName
the name of the customers to look up.protected CustomerService
m_Port
the port instance.protected String
m_ProvidedCustomerName
the provided customer name.protected CustomerServiceService
m_Service
the service instance.-
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 UpdateCustomer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
Returns the classes that are accepted input.void
cleanUp()
Cleans up the client.String
customerNameTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.void
doQuery()
Queries the webservice.String
getCustomerName()
Returns the customer name to update.URL
getWsdlLocation()
Returns the WSDL location.String
globalInfo()
Returns a string describing the object.protected void
reset()
Resets the scheme.void
setCustomerName(String value)
Sets the customer name to update.void
setRequestData(String value)
Sets the data for the request, if any.-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientSink
alternativeURLTipText, connectionTimeoutTipText, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultOutInterceptor, getLastError, getOutInterceptor, getOwner, getQuickInfo, getReceiveTimeout, getUseAlternativeURL, hasLastError, outInterceptorTipText, postQuery, preQuery, query, receiveTimeoutTipText, setAlternativeURL, setConnectionTimeout, setOutInterceptor, setOwner, setReceiveTimeout, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, 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:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in 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:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractWebServiceClientSink<String>
-
reset
protected void reset()
Resets the scheme.- Overrides:
reset
in classadams.core.option.AbstractOptionHandler
-
setCustomerName
public void setCustomerName(String value)
Sets the customer name to update.- Parameters:
value
- the name
-
getCustomerName
public String getCustomerName()
Returns the customer name to update.- 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:
getWsdlLocation
in interfaceWsdlUrlProvider
- Specified by:
getWsdlLocation
in classAbstractWebServiceClientSink<String>
- Returns:
- the location
-
doQuery
public void doQuery() throws Exception
Queries the webservice.- Specified by:
doQuery
in classAbstractWebServiceClientSink<String>
- Throws:
Exception
- if accessing webservice fails for some reason
-
cleanUp
public void cleanUp()
Cleans up the client.- Specified by:
cleanUp
in interfaceadams.core.CleanUpHandler
- Overrides:
cleanUp
in classAbstractWebServiceClientSink<String>
-
-