fipaos.mts.httpMTP
Class HTTPTransportService

java.lang.Object
  |
  +--fipaos.mts.httpMTP.ThreadingAbility
        |
        +--fipaos.mts.httpMTP.HTTPTransportService

public class HTTPTransportService
extends ThreadingAbility


Fields inherited from class fipaos.mts.httpMTP.ThreadingAbility
internal
 
Constructor Summary
HTTPTransportService(int port, CallBack httpCommsRef)
          Sets up the server socket based upon the profile information
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void runImplementation()
          Implementation of Server's functionality.
 void setActive(boolean state)
          Sets state of whether the service should be running
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPTransportService

public HTTPTransportService(int port,
                            CallBack httpCommsRef)
                     throws java.io.IOException
Sets up the server socket based upon the profile information
Parameters:
port - The port that the server should listen on.
Throws:
java.io.IOException -  
Method Detail

setActive

public void setActive(boolean state)
Sets state of whether the service should be running
Parameters:
state - boolean true - service should run
false - service is closed.

runImplementation

protected void runImplementation()
Implementation of Server's functionality. Listens on the port specified until a connection is made. It then starts a ServerHandler to deal with the communicating client.
Overrides:
runImplementation in class ThreadingAbility

main

public static void main(java.lang.String[] args)