Class TweetyServer


  • public class TweetyServer
    extends java.lang.Object
    Uses the Grizzly HTTP server to instantiate the Tweety server that provides API access to Tweety services.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BASE_URI  
    • Constructor Summary

      Constructors 
      Constructor Description
      TweetyServer()  
    • Method Summary

      Modifier and Type Method Description
      static void log​(java.lang.String source, java.lang.String message)
      Writes the given message to the log of this server.
      static void main​(java.lang.String[] args)
      Main server method.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TweetyServer

        public TweetyServer()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException,
                                java.lang.InterruptedException
        Main server method.
        Parameters:
        args - additional arguments (none expected)
        Throws:
        java.io.IOException - if an IO issue occurs.
        java.lang.InterruptedException - if some interruption occurs.
      • log

        public static void log​(java.lang.String source,
                               java.lang.String message)
        Writes the given message to the log of this server.
        Parameters:
        source - the source of the message (should be some identifier of the service)
        message - some message