| Constructor and Description |
|---|
DelayedResponse(long delayMillis,
Response response)
Constructor specifying the delay and the response to send.
|
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-2013 CoreMedia AG. All Rights Reserved.