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 
        default: adams.flow.standalone.rats.output.webservice.NullPostProcessor
    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
        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
        defineOptions in class adams.core.option.AbstractOptionHandler
      • getDefaultClient

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

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

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

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

        public String clientTipText()
        Returns the tip text for this property.
        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.
        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
        null if successful, otherwise error message