protected final OperationStatus matchStatus ( String line , OperationStatus ... statii ) { OperationStatus rv = null ; for ( OperationStatus status : statii ) { if ( line . equals ( status . getMessage ( ) ) ) { rv = status ; } } if ( rv == null ) { rv = new OperationStatus ( false , line , StatusCode . fromAsciiLine ( line ) ) ; } return rv ; }
Match the status line provided against one of the given OperationStatus objects . If none match return a failure status with the given line .