bsh.util
Class Httpd

java.lang.Object
  extended by java.lang.Thread
      extended by bsh.util.Httpd
All Implemented Interfaces:
java.lang.Runnable

public class Httpd
extends java.lang.Thread

A very simple httpd that supports the remote server mode. Files are loaded relative to the classpath (as resources). Warning: this is not secure! This server can probably be duped into serving any file on your system! Beware! Note: at some point this should be recast as a beanshell script.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Httpd(int port)
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 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
 

Constructor Detail

Httpd

public Httpd(int port)
      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.io.IOException
Throws:
java.io.IOException

run

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


? 2000-2005 pat@pat.net :-)