public interface IRequestParameterManager
| Modifier and Type | Method and Description |
|---|---|
default com.helger.commons.url.SimpleURL |
getLinkToMenuItem(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
Locale aDisplayLocale,
String sMenuItemID) |
com.helger.commons.url.SimpleURL |
getLinkToMenuItem(String sAppID,
com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
Locale aDisplayLocale,
String sMenuItemID) |
String |
getLocaleFromURL(com.helger.commons.url.ISimpleURL aURL) |
String |
getMenuItemFromURL(com.helger.commons.url.ISimpleURL aURL) |
IRequestParameterHandler |
getParameterHandler() |
default Locale |
getRequestDisplayCountry()
Get the country to be used for this request.
|
default 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. |
default String |
getRequestMenuItemID() |
Locale |
getSessionDisplayLocale()
Get the locale stored in the session.
|
IMenuItemPage |
getSessionMenuItem() |
void |
onRequestBegin(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
String sApplicationID)
To be called upon the beginning of each request.
|
void |
setParameterHandler(IRequestParameterHandler aRequestParameterHdl) |
@Nonnull IRequestParameterHandler getParameterHandler()
void setParameterHandler(@Nonnull IRequestParameterHandler aRequestParameterHdl)
void onRequestBegin(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull @Nonempty String sApplicationID)
aRequestScope - The request scope that just begun. May not be null.sApplicationID - The current application ID@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 default String getRequestMenuItemID()
null.@Nullable Locale getSessionDisplayLocale()
null if neither session locale nor default
locale is present.@Nonnull Locale getRequestDisplayLocale()
null.@Nonnull default Locale getRequestDisplayCountry()
null.getRequestDisplayLocale()@Nonnull default String getRequestDisplayLanguage()
null.getRequestDisplayLocale()@Nonnull default com.helger.commons.url.SimpleURL getLinkToMenuItem(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull Locale aDisplayLocale, @Nonnull String sMenuItemID)
@Nonnull com.helger.commons.url.SimpleURL getLinkToMenuItem(@Nonnull @Nonempty String sAppID, @Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull Locale aDisplayLocale, @Nonnull String sMenuItemID)
@Nullable String getMenuItemFromURL(@Nullable com.helger.commons.url.ISimpleURL aURL)
Copyright © 2014–2017 Philip Helger. All rights reserved.