| Constructor and Description |
|---|
DelayedResponse(long delayMillis,
Response response)
Constructor specifying the delay and the response to send.
|
| Modifier and Type | Method and Description |
|---|---|
static Response |
delay(long delayMillis,
Response response)
Factory method to create a delayed response.
|
String |
toString() |
void |
write(com.sun.net.httpserver.HttpExchange exchange)
Write a response to the given request.
|
public void write(@Nonnull com.sun.net.httpserver.HttpExchange exchange) throws IOException
Responsewrite in interface Responseexchange - request to handleIOException - in case of an errorpublic static Response delay(long delayMillis, @Nonnull Response response)
delayMillis - delay in milliseconds to wait before sending the responseresponse - the response to send after delayCopyright © 2011-2017 CoreMedia AG. All Rights Reserved.