uk.org.iscream.cms.corbaservices
Class MiniWebServer.Handler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--uk.org.iscream.cms.corbaservices.MiniWebServer.Handler
All Implemented Interfaces:
Runnable
Enclosing class:
MiniWebServer

private class MiniWebServer.Handler
extends Thread

A Handler to deal with each client. This is an inner class because I felt like trying it out :)


Field Summary
private  Socket _socket
          The socket connected to the client
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MiniWebServer.Handler(Socket socket)
          Construct a new Handler
 
Method Summary
 void run()
          Start the Handler running.
 
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

_socket

private Socket _socket
The socket connected to the client

Constructor Detail

MiniWebServer.Handler

public MiniWebServer.Handler(Socket socket)
Construct a new Handler

Parameters:
socket - The socket connected to the client
Method Detail

run

public void run()
Start the Handler running. This will read the URL from the client, and respond accordinly. This does not try to deal with bad data

Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2000-2003 i-scream. All Rights Reserved.