Class RequestMenuSelector
java.lang.Object
com.foreach.across.modules.web.menu.RequestMenuSelector
- All Implemented Interfaces:
 MenuSelector
Will search a menu for the item that best matches with the requested url.
 A fallback matching is performed:
 
- lowest item with exact url or path
 - lowest item with url or path without querystring
 - lowest item with longest prefix of the requested url
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAttribute on a menu to provide extra matching apart from url and standard path. - 
Constructor Summary
ConstructorsConstructorDescriptionRequestMenuSelector(jakarta.servlet.http.HttpServletRequest request) RequestMenuSelector(String fullUrl, String servletPath, String servletPathWithQueryString)  - 
Method Summary
 
- 
Field Details
- 
ATTRIBUTE_MATCHERS
Attribute on a menu to provide extra matching apart from url and standard path. Value should be a collection of strings. 
 - 
 - 
Constructor Details
- 
RequestMenuSelector
public RequestMenuSelector(jakarta.servlet.http.HttpServletRequest request)  - 
RequestMenuSelector
- Parameters:
 fullUrl- Full url - including schema and querystring.servletPath- Path within the application, excluding the querystring.servletPathWithQueryString- Path within the application including the querystring.
 
 - 
 - 
Method Details