Class WebserviceOutput

  • All Implemented Interfaces:
    adams.core.AdditionalInformationHandler, adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.QuickInfoSupporter, adams.core.ShallowCopySupporter<AbstractRatOutput>, adams.core.SizeOfHandler, adams.core.Stoppable, adams.core.StoppableWithFeedback, adams.event.VariableChangeListener, RatOutput, Serializable

    public class WebserviceOutput
    extends AbstractRatOutput
    Allows to send data to webservices using the supplied client.
    If the webservice client implements adams.flow.webservice.WebServiceClientProducer then the supplied post-processor can be used to inspect the response from the webservice, e.g., for inspecting any error messages.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -client <adams.flow.webservice.WebServiceClient> (property: client)
        The webservice client to use.
        default: com.example.customerservice.flow.UpdateCustomer -out-interceptor adams.flow.webservice.interceptor.outgoing.NullGenerator
     
    -response-post-processor <adams.flow.standalone.rats.output.webservice.AbstractWebserviceResponseDataPostProcessor> (property: responsePostProcessor)
        The post-processor to use for the webservice response (if the client implements 
        adams.flow.webservice.WebServiceClientProducer).
        default: adams.flow.standalone.rats.output.webservice.NullPostProcessor
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • WebserviceOutput

        public WebserviceOutput()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.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 interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.core.option.AbstractOptionHandler
      • getDefaultClient

        protected WebServiceClient getDefaultClient()
        Returns the default client to use.
        Returns:
        the client
      • checkClient

        protected String checkClient​(WebServiceClient value)
        Checks the client.
        Parameters:
        value - the client to check
        Returns:
        null if accepted, otherwise error message
      • setClient

        public void setClient​(WebServiceClient value)
        Sets the webservice client to use.
        Parameters:
        value - the webservice client to use
      • getClient

        public WebServiceClient getClient()
        Returns the webservice client in use.
        Returns:
        the webservice client in use
      • clientTipText

        public String clientTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • responsePostProcessorTipText

        public String responsePostProcessorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doTransmit

        protected String doTransmit()
        Performs the actual transmission.
        Specified by:
        doTransmit in class AbstractRatOutput
        Returns:
        null if successful, otherwise error message