Package org.tweetyproject.web
Class TweetyServer
- java.lang.Object
-
- org.tweetyproject.web.TweetyServer
-
public class TweetyServer extends java.lang.ObjectUses the Grizzly HTTP server to instantiate the TweetyProject server that provides API access to TweetyProject services.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBASE_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.InterruptedExceptionMain 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
-
-