|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.net.tool.httpd.Httpd
public class Httpd
A VERY simple HTTP server that serves contents from a "document root" directory.
| Constructor Summary | |
|---|---|
Httpd(java.net.InetSocketAddress endpoint,
java.lang.String fileName)
|
|
| Method Summary | |
|---|---|
java.net.InetSocketAddress |
getEndpointAddress()
|
void |
run()
"To run" an instance means to call this method and wait until it returns. |
void |
stop()
Returns when this Stoppable has completely stopped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Httpd(java.net.InetSocketAddress endpoint,
java.lang.String fileName)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void run()
throws java.io.IOException
RunnableWhichThrows
run in interface RunnableWhichThrows<java.io.IOException>java.io.IOExceptionpublic void stop()
StoppableStoppable has completely stopped.
stop in interface Stoppablepublic java.net.InetSocketAddress getEndpointAddress()
HttpServer.getEndpointAddress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||