public static String getLongestUrlPattern ( String firstUrlPattern , String secondUrlPattern ) { if ( secondUrlPattern == null || ( firstUrlPattern != null && firstUrlPattern . length ( ) >= secondUrlPattern . length ( ) ) ) { return firstUrlPattern ; } else { return secondUrlPattern ; } }
Determine the longest URL pattern .