public void done ( ) { final int processing_time = processingTimeMillis ( ) ; final String url = request . getUri ( ) ; final String msg = String . format ( "HTTP %s done in %d ms" , url , processing_time ) ; if ( url . startsWith ( "/api/put" ) && LOG . isDebugEnabled ( ) ) { // NOTE: Suppresses too many log lines from /api/put. LOG . debug ( msg ) ; } else { logInfo ( msg ) ; } logInfo ( "HTTP " + request . getUri ( ) + " done in " + processing_time + "ms" ) ; }
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 .