ibspan.tss.agents.pra.server
Class MainServer

java.lang.Object
  extended by ibspan.tss.agents.pra.server.MainServer
All Implemented Interfaces:
Runnable

public class MainServer
extends Object
implements Runnable

It is HTTP server. When HTTP request comes, it creates Server thread.

Author:
Pawel Kaczmarek

Field Summary
static String HTML_MEDIA_TYPE
           
static String HTML_SERVER
           
static String MEDIA_TYPE_SUFFIX
           
static String WML_MEDIA_TYPE
           
static String WML_SERVER
           
 
Constructor Summary
MainServer(SynchronousController listener, int port, String mediaType)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEDIA_TYPE_SUFFIX

public static final String MEDIA_TYPE_SUFFIX
See Also:
Constant Field Values

HTML_MEDIA_TYPE

public static final String HTML_MEDIA_TYPE
See Also:
Constant Field Values

WML_MEDIA_TYPE

public static final String WML_MEDIA_TYPE
See Also:
Constant Field Values

HTML_SERVER

public static final String HTML_SERVER
See Also:
Constant Field Values

WML_SERVER

public static final String WML_SERVER
See Also:
Constant Field Values
Constructor Detail

MainServer

public MainServer(SynchronousController listener,
                  int port,
                  String mediaType)
Method Detail

run

public void run()
Specified by:
run in interface Runnable