public class HttpReceiver extends AbstractReceiver
Constructor and Description |
---|
HttpReceiver() |
Modifier and Type | Method and Description |
---|---|
String |
getHttpResponse()
Gets the HTTP response to return to the client.
|
int |
getHttpStatusCode()
Gets the HTTP status code to return to the client.
|
String |
getHttpStatusMessage()
Gets the HTTP status message to return to the client.
|
HttpReceiver |
setHttpResponse(String httpResponse)
Sets the HTTP response to return to the client.
|
HttpReceiver |
setHttpStatusCode(int httpStatusCode)
Sets the HTTP status code to return to the client.
|
HttpReceiver |
setHttpStatusMessage(String httpStatusMessage)
Sets the HTTP status message to return to the client.
|
void |
start()
Starts all receiver threads.
|
void |
stop()
Stops all the receiver threads.
|
getSource, setCorrelator, setSource, setThreads
public void start() throws PerfCakeException
Receiver
PerfCakeException
- When it was not possible to start all threads.public void stop()
Receiver
public int getHttpStatusCode()
public HttpReceiver setHttpStatusCode(int httpStatusCode)
httpStatusCode
- The HTTP status code to return to the client.public String getHttpStatusMessage()
public HttpReceiver setHttpStatusMessage(String httpStatusMessage)
httpStatusMessage
- The HTTP status message to return to the client.public String getHttpResponse()
public HttpReceiver setHttpResponse(String httpResponse)
httpResponse
- The HTTP response to return to the client.Copyright © 2010–2017 PerfCake Community. All rights reserved.