59 ExportedObject bestobject = null;
60 String[] pathel = path.split(
"/");
61 for (String[] fbpath :
fallbacks.keySet()) {
63 Debug.print(Debug.VERBOSE,
"Trying fallback path " + Arrays.deepToString(fbpath) +
" to match " + Arrays.deepToString(pathel));
64 for (i = 0; i < pathel.length && i < fbpath.length; i++)
65 if (!pathel[i].equals(fbpath[i]))
break;
66 if (i > 0 && i == fbpath.length && i > best)
68 if (Debug.debug) Debug.print(Debug.VERBOSE,
"Matches " + i +
" bestobject now " + bestobject);
70 if (Debug.debug) Debug.print(Debug.DEBUG,
"Found fallback for " + path +
" of " + bestobject);
Map< String[], ExportedObject > fallbacks
Definition: AbstractConnection.java:44