iglu.net
Class URLServerThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--iglu.net.PortServerThread
              |
              +--iglu.net.URLServerThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ProxyServerExample

public class URLServerThread
extends PortServerThread

A PortServer with some extra functionality for dealing with URL's. Basically, this gives us a few server-specific things that the client handlers might want access to. Currently all it offers is "BlackList" functionality. To make this class into a proxy server, you just make a decendant of WebHandler to be the object returns by the ClientCreator passed to this constructor.

Version:
0.1
Author:
Travis Bauer trbauer@indiana.edu

Field Summary
protected  BlackList blackList
          the black list
 
Fields inherited from class iglu.net.PortServerThread
psvr
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
URLServerThread(java.net.InetAddress addr, java.lang.Integer port, ClientCreator ncc)
          constructor
 
Method Summary
 BlackList getBlackList()
          returns the black list
 void setBlackList(BlackList bl)
          sets the black list
 
Methods inherited from class iglu.net.PortServerThread
run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

blackList

protected BlackList blackList
the black list

Constructor Detail

URLServerThread

public URLServerThread(java.net.InetAddress addr,
                       java.lang.Integer port,
                       ClientCreator ncc)
constructor

Parameters:
addr - The machine the server will run on.
port - The port the server will run on.
ncc - The ClientCreator to use.
Method Detail

getBlackList

public BlackList getBlackList()
returns the black list

Returns:
A BlackList.

setBlackList

public void setBlackList(BlackList bl)
sets the black list

Parameters:
bl - The new black list.