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 File
getContentRoot()
int
getPort()
String
getResourceUrl(String path)
void
stop()
-
-
-
Constructor Detail
-
SimpleHttpFileServer
public SimpleHttpFileServer(File contentRoot, int port, org.gradle.internal.concurrent.Stoppable stopper)
-
-
Method Detail
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceHttpFileServer
-
getResourceUrl
public String getResourceUrl(String path)
- Specified by:
getResourceUrl
in interfaceHttpFileServer
-
getContentRoot
public File getContentRoot()
- Specified by:
getContentRoot
in interfaceHttpFileServer
-
stop
public void stop()
- Specified by:
stop
in interfaceHttpFileServer
-
-