@NotThreadSafe public class RequestParameterManager extends com.helger.web.scope.singleton.AbstractGlobalWebSingleton implements IRequestParameterManager
| Constructor and Description |
|---|
RequestParameterManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static RequestParameterManager |
getInstance() |
com.helger.commons.url.SimpleURL |
getLinkToMenuItem(String sApplicationID,
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() |
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. |
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) |
String |
toString() |
getAllGlobalSingletons, getGlobalSingleton, getGlobalSingletonIfInstantiated, isGlobalSingletonInstantiatedgetAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInPreDestruction, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onBeforeDestroy, onBeforeScopeDestruction, onDestroy, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInPreDestruction, setInstantiated, writeAbstractSingletonFieldsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLinkToMenuItem, getRequestDisplayCountry, getRequestDisplayLanguage, getRequestMenuItemID@Deprecated @UsedViaReflection public RequestParameterManager()
@Nonnull public static RequestParameterManager getInstance()
@Nonnull public final IRequestParameterHandler getParameterHandler()
getParameterHandler in interface IRequestParameterManagerpublic final void setParameterHandler(@Nonnull IRequestParameterHandler aRequestParameterHdl)
setParameterHandler in interface IRequestParameterManagerpublic void onRequestBegin(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull @Nonempty String sApplicationID)
IRequestParameterManageronRequestBegin in interface IRequestParameterManageraRequestScope - The request scope that just begun. May not be null.sApplicationID - The current application ID@Nullable public IMenuItemPage getSessionMenuItem()
getSessionMenuItem in interface IRequestParameterManagernull if the
corresponding session parameter is not present.@Nonnull public IMenuItemPage getRequestMenuItem()
IRequestParameterManagerIMenuItem
object. If no parameter is present, return the default menu item.getRequestMenuItem in interface IRequestParameterManagernull.@Nullable public Locale getSessionDisplayLocale()
IRequestParameterManagergetSessionDisplayLocale in interface IRequestParameterManagernull if neither session locale nor default
locale is present.@Nonnull public Locale getRequestDisplayLocale()
IRequestParameterManagergetRequestDisplayLocale in interface IRequestParameterManagernull.@Nonnull public com.helger.commons.url.SimpleURL getLinkToMenuItem(@Nonnull @Nonempty String sApplicationID, @Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull Locale aDisplayLocale, @Nonnull String sMenuItemID)
getLinkToMenuItem in interface IRequestParameterManager@Nullable public String getMenuItemFromURL(@Nullable com.helger.commons.url.ISimpleURL aURL)
getMenuItemFromURL in interface IRequestParameterManager@Nullable public String getLocaleFromURL(@Nullable com.helger.commons.url.ISimpleURL aURL)
getLocaleFromURL in interface IRequestParameterManagerpublic String toString()
toString in class com.helger.commons.scope.singleton.AbstractSingletonCopyright © 2014–2017 Philip Helger. All rights reserved.