Package net.jadler.stubbing.server.jdk
Class JdkStubHttpServer
- java.lang.Object
-
- net.jadler.stubbing.server.jdk.JdkStubHttpServer
-
- All Implemented Interfaces:
net.jadler.stubbing.server.StubHttpServer
public class JdkStubHttpServer extends Object implements net.jadler.stubbing.server.StubHttpServer
Stub server implementation based onHttpServerwhich is part of JDK.
-
-
Constructor Summary
Constructors Constructor Description JdkStubHttpServer()JdkStubHttpServer(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPort()voidregisterRequestManager(net.jadler.RequestManager ruleProvider)voidstart()voidstop()
-
-
-
Method Detail
-
registerRequestManager
public void registerRequestManager(net.jadler.RequestManager ruleProvider)
- Specified by:
registerRequestManagerin interfacenet.jadler.stubbing.server.StubHttpServer
-
start
public void start() throws Exception- Specified by:
startin interfacenet.jadler.stubbing.server.StubHttpServer- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfacenet.jadler.stubbing.server.StubHttpServer- Throws:
Exception
-
getPort
public int getPort()
- Specified by:
getPortin interfacenet.jadler.stubbing.server.StubHttpServer
-
-