public interface IRequestManager
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REQUEST_PARAMETER_DISPLAY_LOCALE
The default name of the parameter selecting the current display locale
|
static String |
DEFAULT_REQUEST_PARAMETER_MENUITEM
The default name of the parameter selecting the current menu item
|
static boolean |
DEFAULT_USE_PATHS
By default request parameters are used - for backwards compatibility
|
static char |
SEPARATOR_CHAR
The separator char to be used if path based handling is enabled, to
separate name and value
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.url.SimpleURL |
getLinkToMenuItem(com.helger.web.scopes.domain.IRequestWebScopeWithoutResponse aRequestScope,
String sMenuItemID) |
String |
getLocaleFromURL(com.helger.commons.url.ISimpleURL aURL) |
String |
getMenuItemFromURL(com.helger.commons.url.ISimpleURL aURL) |
Locale |
getRequestDisplayCountry()
Get the country to be used for this request.
|
String |
getRequestDisplayLanguage() |
Locale |
getRequestDisplayLocale()
Get the locale to be used for this request.
|
IMenuItemPage |
getRequestMenuItem()
Resolve the request parameter for the menu item to an
IMenuItem
object. |
String |
getRequestMenuItemID() |
String |
getRequestParamNameLocale() |
String |
getRequestParamNameMenuItem() |
IMenuItemPage |
getSessionMenuItem() |
boolean |
isUsePaths() |
void |
onRequestBegin(com.helger.web.scopes.domain.IRequestWebScopeWithoutResponse aRequestScope)
To be called upon the beginning of each request.
|
void |
setRequestParamNameLocale(String sRequestParamDisplayLocale) |
void |
setRequestParamNameMenuItem(String sRequestParamMenuItem) |
void |
setUsePaths(boolean bUsePaths) |
static final boolean DEFAULT_USE_PATHS
static final String DEFAULT_REQUEST_PARAMETER_MENUITEM
static final String DEFAULT_REQUEST_PARAMETER_DISPLAY_LOCALE
static final char SEPARATOR_CHAR
boolean isUsePaths()
void setUsePaths(boolean bUsePaths)
void setRequestParamNameMenuItem(@Nonnull@Nonempty String sRequestParamMenuItem)
void setRequestParamNameLocale(@Nonnull@Nonempty String sRequestParamDisplayLocale)
void onRequestBegin(@Nonnull com.helger.web.scopes.domain.IRequestWebScopeWithoutResponse aRequestScope)
aRequestScope - The request scope that just begun. May not be null.@Nullable IMenuItemPage getSessionMenuItem()
null if the
corresponding session parameter is not present.@Nonnull IMenuItemPage getRequestMenuItem()
IMenuItem
object. If no parameter is present, return the default menu item.null.@Nonnull String getRequestMenuItemID()
null.@Nonnull Locale getRequestDisplayLocale()
null.@Nonnull Locale getRequestDisplayCountry()
null.getRequestDisplayLocale()@Nonnull String getRequestDisplayLanguage()
null.getRequestDisplayLocale()@Nonnull com.helger.commons.url.SimpleURL getLinkToMenuItem(@Nonnull com.helger.web.scopes.domain.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull String sMenuItemID)
@Nullable String getMenuItemFromURL(@Nullable com.helger.commons.url.ISimpleURL aURL)
Copyright © 2014–2015 Philip Helger. All rights reserved.