public int getHTTPStatus ( ) throws InterruptedException , BOSHException { if ( toThrow != null ) { throw ( toThrow ) ; } lock . lock ( ) ; try { if ( ! sent ) { awaitResponse ( ) ; } } finally { lock . unlock ( ) ; } return statusCode ; }
Wait for and then return the response HTTP status code .