@ Override public boolean incomingServerRequestMatchesMethod ( RequestDetails theRequest ) { if ( ! Constants . PARAM_HISTORY . equals ( theRequest . getOperation ( ) ) ) { return false ; } if ( theRequest . getResourceName ( ) == null ) { return myResourceOperationType == RestOperationTypeEnum . HISTORY_SYSTEM ; } if ( ! StringUtils . equals ( theRequest . getResourceName ( ) , myResourceName ) ) { return false ; } boolean haveIdParam = theRequest . getId ( ) != null && ! theRequest . getId ( ) . isEmpty ( ) ; boolean wantIdParam = myIdParamIndex != null ; if ( haveIdParam != wantIdParam ) { return false ; } if ( theRequest . getId ( ) == null ) { return myResourceOperationType == RestOperationTypeEnum . HISTORY_TYPE ; } else if ( theRequest . getId ( ) . hasVersionIdPart ( ) ) { return false ; } return true ; }
ObjectUtils . equals is replaced by a JDK7 method ..