Method to call after writing the HTTP response to the wire. The default is to simply log the request info. Can be overridden by subclasses.
()
| 354 | * is to simply log the request info. Can be overridden by subclasses. |
| 355 | */ |
| 356 | public void done() { |
| 357 | final int processing_time = processingTimeMillis(); |
| 358 | final String url = request.getUri(); |
| 359 | final String msg = String.format("HTTP %s done in %d ms", url, processing_time); |
| 360 | if (url.startsWith("/api/put") && LOG.isDebugEnabled()) { |
| 361 | // NOTE: Suppresses too many log lines from /api/put. |
| 362 | LOG.debug(msg); |
| 363 | } else { |
| 364 | logInfo(msg); |
| 365 | } |
| 366 | logInfo("HTTP " + request.getUri() + " done in " + processing_time + "ms"); |
| 367 | } |
| 368 | |
| 369 | /** |
| 370 | * Sends <code>500/Internal Server Error</code> to the client. |
no test coverage detected