com.example.customerservice.flow
Class UpdateCustomer

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.flow.webservice.AbstractWebServiceClientSink<String>
              extended by com.example.customerservice.flow.UpdateCustomer
All Implemented Interfaces:
CleanUpHandler, Debuggable, Destroyable, OptionHandler, SizeOfHandler, WebServiceClient, WebServiceClientConsumer<String>, Serializable

public class UpdateCustomer
extends AbstractWebServiceClientSink<String>

Simple client for querying customer names.

Version:
$Revision: 5346 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  String m_CustomerName
          the name of the customers to look up.
protected  String m_ProvidedCustomerName
          the provided customer name.
 
Fields inherited from class adams.flow.webservice.AbstractWebServiceClientSink
m_Owner
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
UpdateCustomer()
           
 
Method Summary
 Class[] accepts()
          Returns the classes that are accepted input.
 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.
protected  URL getWsdlLocation()
          Returns the WSDL location.
 String globalInfo()
          Returns a string describing the object.
 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
cleanUp, getOwner, postQuery, preQuery, query, setOwner
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.

Constructor Detail

UpdateCustomer

public UpdateCustomer()
Method Detail

globalInfo

public String globalInfo()
Returns a string describing the object.

Specified by:
globalInfo in class 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 interface OptionHandler
Overrides:
defineOptions in class 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

protected URL getWsdlLocation()
Returns the WSDL location.

Specified by:
getWsdlLocation in class AbstractWebServiceClientSink<String>
Returns:
the location

doQuery

public void doQuery()
             throws Exception
Queries the webservice.

Specified by:
doQuery in class AbstractWebServiceClientSink<String>
Throws:
Exception - if accessing webservice fails for some reason


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.