ePOST API

rice.email.proxy.web
Class WebServerImpl

java.lang.Object
  extended by java.lang.Thread
      extended by rice.email.proxy.web.WebServerImpl
All Implemented Interfaces:
java.lang.Runnable, WebServer

public class WebServerImpl
extends java.lang.Thread
implements WebServer


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  EmailService email
           
protected  Environment environment
           
protected  Logger logger
           
protected  UserManager manager
           
protected  int port
           
protected  boolean quit
           
protected  java.net.ServerSocket server
           
protected  java.util.HashMap states
           
protected  Workspace workspace
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WebServerImpl(int port, EmailService email, UserManager manager, Environment env)
           
 
Method Summary
 int getPort()
           
protected  WebState getWebState(java.net.InetAddress address)
           
 void initialize()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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
 
Methods inherited from interface rice.email.proxy.web.WebServer
start
 

Field Detail

quit

protected boolean quit

port

protected int port

server

protected java.net.ServerSocket server

manager

protected UserManager manager

workspace

protected Workspace workspace

email

protected EmailService email

environment

protected Environment environment

logger

protected Logger logger

states

protected java.util.HashMap states
Constructor Detail

WebServerImpl

public WebServerImpl(int port,
                     EmailService email,
                     UserManager manager,
                     Environment env)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getPort

public int getPort()
Specified by:
getPort in interface WebServer

initialize

public void initialize()
                throws java.io.IOException
Throws:
java.io.IOException

getWebState

protected WebState getWebState(java.net.InetAddress address)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

ePOST API

Copyright © 2001-2005 - Rice Pastry.