Class SimpleHttpFileServer
- java.lang.Object
-
- org.gradle.plugins.javascript.envjs.http.simple.SimpleHttpFileServer
-
- All Implemented Interfaces:
HttpFileServer
public class SimpleHttpFileServer extends Object implements HttpFileServer
-
-
Constructor Summary
Constructors Constructor Description SimpleHttpFileServer(File contentRoot, int port, org.gradle.internal.concurrent.Stoppable stopper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetContentRoot()intgetPort()StringgetResourceUrl(String path)voidstop()
-
-
-
Constructor Detail
-
SimpleHttpFileServer
public SimpleHttpFileServer(File contentRoot, int port, org.gradle.internal.concurrent.Stoppable stopper)
-
-
Method Detail
-
getPort
public int getPort()
- Specified by:
getPortin interfaceHttpFileServer
-
getResourceUrl
public String getResourceUrl(String path)
- Specified by:
getResourceUrlin interfaceHttpFileServer
-
getContentRoot
public File getContentRoot()
- Specified by:
getContentRootin interfaceHttpFileServer
-
stop
public void stop()
- Specified by:
stopin interfaceHttpFileServer
-
-