hiit
Class ContextListener

java.lang.Object
  extended by hiit.ContextListener

public class ContextListener
extends java.lang.Object

BetelgeuseListener: receives data via HTTP socket connections and saves it to the BeTelGeuse database. Handles multiple socket connections via threading.

Author:
Joonas Kukkonen and Eemil Lagerspetz

Constructor Summary
ContextListener(int port, boolean test)
          Used to start the BTG listener.
 
Method Summary
 void listen()
          Starts listening on the specified port.
static void main(java.lang.String[] args)
          Starts the listener on the command line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextListener

public ContextListener(int port,
                       boolean test)
Used to start the BTG listener.

Parameters:
port - The port to listen on.
Method Detail

listen

public void listen()
Starts listening on the specified port. Creates BetelgeuseProtocolSocket instances to handle incoming connections.


main

public static void main(java.lang.String[] args)
Starts the listener on the command line.

Parameters:
args - args[0] is expected to be the port number to listen to.