|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.mock.MockHtppServer
public class MockHtppServer
Very simple Server to mock http traffic
| Constructor Summary | |
|---|---|
MockHtppServer(int port)
Construct MockHtppServer |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockHtppServer(int port)
port - number it listens to| Method Detail |
|---|
protected MockHandler createHandler(org.eclipse.jetty.server.Server server)
server - Server
MockHandlerpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||