private TerminalBindingCondition getTerminalBindingCondition ( final int respCode , final AbstractBody respBody ) { assertLocked ( ) ; if ( isTermination ( respBody ) ) { String str = respBody . getAttribute ( Attributes . CONDITION ) ; return TerminalBindingCondition . forString ( str ) ; } // Check for deprecated HTTP Error Conditions if ( cmParams != null && cmParams . getVersion ( ) == null ) { return TerminalBindingCondition . forHTTPResponseCode ( respCode ) ; } return null ; }
Evaluates the HTTP response code and response message and returns the terminal binding condition that it describes if any .