public class Httpd extends java.lang.Object implements RunnableWhichThrows<java.io.IOException>, Stoppable
| Constructor and Description |
|---|
Httpd(java.net.InetSocketAddress endpoint,
java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public Httpd(java.net.InetSocketAddress endpoint,
java.lang.String fileName)
throws java.io.IOException
java.io.IOExceptionpublic void run()
throws java.io.IOException
RunnableWhichThrowsrun in interface RunnableWhichThrows<java.io.IOException>java.io.IOExceptionpublic void stop()
StoppableStoppable has completely stopped.public java.net.InetSocketAddress getEndpointAddress()
HttpServer.getEndpointAddress()