Class EchoServer

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, adams.flow.core.FlowContextHandler, RESTProvider, Serializable

    public class EchoServer
    extends AbstractRESTProvider
    Only offers:

    REST Method 'ping'
    - Path:{input})
    - Produces:[text/plain])
    - Method(s): GET

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -url <java.lang.String> (property: URL)
        The URL of the service.
        default: http://localhost:8080/
    -in-interceptor <> (property: inInterceptor)
        The interceptor to use for incoming messages.
    -out-interceptor <> (property: outInterceptor)
        The interceptor to use for outgoing messages.
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • EchoServer

        public EchoServer()
    • 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
      • doStart

        protected org.apache.cxf.endpoint.Server doStart()
                                                  throws Exception
        Performs the actual start of the service.
        Specified by:
        doStart in class AbstractRESTProvider
        the server instance
        Exception - if start fails