|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.apache.wink.client.MockHttpServer
public class MockHttpServer
Nested Class Summary | |
---|---|
static class |
MockHttpServer.MockHttpServerResponse
|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
MockHttpServer(int serverPort)
|
|
MockHttpServer(int serverPort,
boolean ssl)
|
Method Summary | |
---|---|
java.util.List<MockHttpServer.MockHttpServerResponse> |
getMockHttpServerResponses()
|
byte[] |
getRequestContent()
|
java.lang.String |
getRequestContentAsString()
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getRequestHeaders()
|
java.lang.String |
getRequestMethod()
|
java.lang.String |
getRequestUrl()
|
int |
getServerPort()
|
static void |
main(java.lang.String[] args)
|
void |
run()
|
void |
setDelayResponse(int milliseconds)
|
void |
setMockHttpServerResponses(MockHttpServer.MockHttpServerResponse... responses)
|
void |
setReadTimeout(int milliseconds)
|
void |
setServerPort(int serverPort)
|
void |
startServer()
|
void |
stopServer()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MockHttpServer(int serverPort)
public MockHttpServer(int serverPort, boolean ssl)
Method Detail |
---|
public void startServer()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void stopServer()
public void setReadTimeout(int milliseconds)
public void setDelayResponse(int milliseconds)
public java.lang.String getRequestContentAsString()
public byte[] getRequestContent()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getRequestHeaders()
public java.lang.String getRequestMethod()
public java.lang.String getRequestUrl()
public static void main(java.lang.String[] args)
public void setMockHttpServerResponses(MockHttpServer.MockHttpServerResponse... responses)
public java.util.List<MockHttpServer.MockHttpServerResponse> getMockHttpServerResponses()
public void setServerPort(int serverPort)
public int getServerPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |