public class SimpleHTTPServer extends Object
| Constructor and Description |
|---|
SimpleHTTPServer()
Constructs an HTTP server, which will run on a randomly selected port on the wildcard address.
|
SimpleHTTPServer(InetAddress bindAddress,
int port)
Constructs an HTTP server running on a specified address/port.
|
public SimpleHTTPServer()
throws IOException
IOExceptionpublic SimpleHTTPServer(InetAddress bindAddress, int port) throws IOException
bindAddress - the address to bind to.port - the port to bind to.IOExceptionpublic URL serve(URL stream)
stream - the URL to obtain the stream contents, which will be opened each time the stream is served.public void start()
public void shutdown()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.