public String getMenuName ( HttpServletRequest request , String overrideName ) { if ( ! StringUtils . isEmpty ( overrideName ) ) { return overrideName ; } String name = request . getRequestURI ( ) . replaceFirst ( AdminTool . ROOTCONTEXT , "" ) ; if ( ! StringUtils . isEmpty ( request . getContextPath ( ) ) ) { name = name . replaceFirst ( request . getContextPath ( ) , "" ) ; } if ( name . startsWith ( "/" ) ) { name = name . substring ( 1 , name . length ( ) ) ; } return name ; }
retuns the menu name for given requestUrl or the overrideName if set .