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