Package net.jadler.stubbing.server.jetty
Class JettyStubHttpServer
- java.lang.Object
-
- net.jadler.stubbing.server.jetty.JettyStubHttpServer
-
- All Implemented Interfaces:
net.jadler.stubbing.server.StubHttpServer
public class JettyStubHttpServer extends Object implements net.jadler.stubbing.server.StubHttpServer
Default stub http server implementation using Jetty as an http server.
-
-
Constructor Summary
Constructors Constructor Description JettyStubHttpServer()JettyStubHttpServer(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
-
-