Package net.sf.tweety.web
Class TweetyServer
- java.lang.Object
-
- net.sf.tweety.web.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()
-
-
-
Field Detail
-
BASE_URI
public static final java.lang.String BASE_URI
- See Also:
- Constant Field Values
-
-
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
-
-