void setHTTPResponse ( HTTPResponse resp ) { lock . lock ( ) ; try { if ( response != null ) { throw ( new IllegalStateException ( "HTTPResponse was already set" ) ) ; } response = resp ; ready . signalAll ( ) ; } finally { lock . unlock ( ) ; } }
Set the HTTPResponse instance .