HttpFileServer
public class SimpleHttpFileServer extends Object implements HttpFileServer
Constructor | Description |
---|---|
SimpleHttpFileServer(File contentRoot,
int port,
org.gradle.internal.concurrent.Stoppable stopper) |
Modifier and Type | Method | Description |
---|---|---|
File |
getContentRoot() |
|
int |
getPort() |
|
String |
getResourceUrl(String path) |
|
void |
stop() |
public SimpleHttpFileServer(File contentRoot, int port, org.gradle.internal.concurrent.Stoppable stopper)
public int getPort()
getPort
in interface HttpFileServer
public String getResourceUrl(String path)
getResourceUrl
in interface HttpFileServer
public File getContentRoot()
getContentRoot
in interface HttpFileServer
public void stop()
stop
in interface HttpFileServer