public class MockHtppServer extends Object
Server to mock http traffic| Constructor and Description |
|---|
MockHtppServer(int port)
Construct MockHtppServer
|
| Modifier and Type | Method and Description |
|---|---|
protected MockHandler |
createHandler(org.eclipse.jetty.server.Server server)
Create a handler for the server
|
void |
doStartServer(boolean async)
Start the server in a non-blocking mode.
|
MockHandler |
getHandler() |
org.eclipse.jetty.server.Server |
getServer() |
void |
startServer()
Start the server in a non-blocking mode.
|
void |
startServerSync()
Start the server in a blocking mode.
|
void |
stopServer()
Stop the server
|
public MockHtppServer(int port)
port - number it listens toprotected MockHandler createHandler(org.eclipse.jetty.server.Server server)
server - ServerMockHandlerpublic void startServer()
public void startServerSync()
public void doStartServer(boolean async)
async - if true it will start with a short delaypublic void stopServer()
public MockHandler getHandler()
public org.eclipse.jetty.server.Server getServer()
Copyright © 2013. All Rights Reserved.