public class SecureStubServer
extends com.xebialabs.restito.server.StubServer
| Constructor and Description |
|---|
SecureStubServer(com.xebialabs.restito.support.behavior.Behavior behavior)
Creates a server based on Behavior object
|
SecureStubServer(int portRangeStart,
int portRangeEnd,
com.xebialabs.restito.semantics.Stub... stubs)
This constructor allows to specify the port range beside stubs.
|
SecureStubServer(int port,
com.xebialabs.restito.semantics.Stub... stubs)
This constructor allows to specify the port beside stubs.
|
SecureStubServer(com.xebialabs.restito.semantics.Stub... stubs)
Creates a server based on stubs that are used to determine behavior.
|
| Modifier and Type | Method and Description |
|---|---|
SecureStubServer |
addStub(com.xebialabs.restito.semantics.Stub s)
It is possible to add a stub even after the server is started
|
List<com.xebialabs.restito.semantics.Call> |
getCalls()
Returns calls performed to the server.
|
int |
getPort()
Returns the port which the server is running at
|
List<com.xebialabs.restito.semantics.Stub> |
getStubs()
Returns stubs associated with the server.
|
SecureStubServer |
run()
Starts the server
|
SecureStubServer |
secured()
Sets the Server in Secure mode.
|
void |
start()
Alias for StubServer.run()
|
SecureStubServer |
stop()
Stops the server
|
public SecureStubServer(com.xebialabs.restito.semantics.Stub... stubs)
public SecureStubServer(int portRangeStart,
int portRangeEnd,
com.xebialabs.restito.semantics.Stub... stubs)
public SecureStubServer(int port,
com.xebialabs.restito.semantics.Stub... stubs)
public SecureStubServer(com.xebialabs.restito.support.behavior.Behavior behavior)
public SecureStubServer addStub(com.xebialabs.restito.semantics.Stub s)
addStub in class com.xebialabs.restito.server.StubServerpublic SecureStubServer run()
run in class com.xebialabs.restito.server.StubServerpublic void start()
start in class com.xebialabs.restito.server.StubServerpublic SecureStubServer stop()
stop in class com.xebialabs.restito.server.StubServerpublic SecureStubServer secured()
secured in class com.xebialabs.restito.server.StubServerpublic int getPort()
getPort in class com.xebialabs.restito.server.StubServerpublic List<com.xebialabs.restito.semantics.Call> getCalls()
getCalls in class com.xebialabs.restito.server.StubServerThis work is licensed under a Creative Commons Attribution 4.0 International License.