| Modifier and Type | Class and Description |
|---|---|
class |
DelayedResponse
Send the given response but with some delay.
|
class |
StatusCodeResponse
A prepared response which just serves a status code and empty response body.
|
| Modifier and Type | Method and Description |
|---|---|
static Response |
DelayedResponse.delay(long delayMillis,
Response response)
Factory method to create a delayed response.
|
static Response |
StatusCodeResponse.statusCode(int statusCode)
Factory for status code response.
|
| Modifier and Type | Method and Description |
|---|---|
static Response |
DelayedResponse.delay(long delayMillis,
Response response)
Factory method to create a delayed response.
|
void |
PreparedResponsesHttpHandler.feedResponses(Response... responses)
Feed responses.
|
| Constructor and Description |
|---|
DelayedResponse(long delayMillis,
Response response)
Constructor specifying the delay and the response to send.
|
Copyright © 2011-2013 CoreMedia AG. All Rights Reserved.