public class SimpleHttpServer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_RESPONSE |
| Modifier and Type | Method and Description |
|---|---|
static SimpleHttpServer |
createServer(int port) |
HttpMessage |
getHttpRequest(int index) |
HttpMessage |
getLastHttpRequest() |
void |
setResponseDelay(long responseDelay) |
void |
setResponseStatusCode(int statusCode) |
SimpleHttpServer |
start()
Starts the http server.
|
void |
stop()
Stops the http server.
|
public static final String DEFAULT_RESPONSE
public HttpMessage getLastHttpRequest()
public HttpMessage getHttpRequest(int index)
public static SimpleHttpServer createServer(int port)
port - port to listen for http requests.SimpleHttpServer created to listen in the port portpublic SimpleHttpServer start()
thispublic void stop()
public void setResponseStatusCode(int statusCode)
public void setResponseDelay(long responseDelay)
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.