Class ForcedRedirectManager
- java.lang.Object
-
- com.helger.scope.singleton.AbstractSingleton
-
- com.helger.web.scope.singleton.AbstractSessionWebSingleton
-
- com.helger.xservlet.forcedredirect.ForcedRedirectManager
-
- All Implemented Interfaces:
com.helger.scope.IScopeDestructionAware,com.helger.web.scope.singleton.IWebSingleton,Serializable
@ThreadSafe public final class ForcedRedirectManager extends com.helger.web.scope.singleton.AbstractSessionWebSingletonStores per-session the data to be used in a Post-Redirect-Get scenario.
This class usually takes 'IHCNode' but because of the reverse dependencies, this type cannot be used and is therefore abstracted as 'Serializable' in this implementation. So all the time you read 'Serializable' consider it to be 'IHCNode'.- Since:
- 9.0.0
- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_PARAMETER_PRG_ACTIVE
-
Constructor Summary
Constructors Constructor Description ForcedRedirectManager()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateForcedRedirect(ForcedRedirectException ex)SerializablegetAndRemoveContent(String sMenuItemID)static SerializablegetAndRemoveLastForcedRedirectContent(String sMenuItemID)SerializablegetContent(String sMenuItemID)static ForcedRedirectManagergetInstance()static ForcedRedirectManagergetInstanceIfInstantiated()static SerializablegetLastForcedRedirectContent(String sMenuItemID)booleanhasContent(String sMenuItemID)StringtoString()-
Methods inherited from class com.helger.web.scope.singleton.AbstractSessionWebSingleton
getAllSessionSingletons, getSessionSingleton, getSessionSingletonIfInstantiated, isSessionSingletonInstantiated
-
Methods inherited from class com.helger.scope.singleton.AbstractSingleton
getAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInPreDestruction, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onBeforeDestroy, onBeforeScopeDestruction, onDestroy, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInPreDestruction, setInstantiated, writeAbstractSingletonFields
-
-
-
-
Field Detail
-
REQUEST_PARAMETER_PRG_ACTIVE
public static final String REQUEST_PARAMETER_PRG_ACTIVE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ForcedRedirectManager
@Deprecated @UsedViaReflection public ForcedRedirectManager()
Deprecated.
-
-
Method Detail
-
getInstance
@Nonnull public static ForcedRedirectManager getInstance()
- Returns:
- The instance to use. Never
null.
-
getInstanceIfInstantiated
@Nullable public static ForcedRedirectManager getInstanceIfInstantiated()
- Returns:
- The instance to use if already instantiated. Maybe
null.
-
createForcedRedirect
public void createForcedRedirect(@Nonnull ForcedRedirectException ex)
-
getContent
@Nullable public Serializable getContent(@Nullable String sMenuItemID)
-
getLastForcedRedirectContent
@Nullable public static Serializable getLastForcedRedirectContent(@Nullable String sMenuItemID)
-
getAndRemoveContent
@Nullable public Serializable getAndRemoveContent(@Nullable String sMenuItemID)
-
getAndRemoveLastForcedRedirectContent
@Nullable public static Serializable getAndRemoveLastForcedRedirectContent(@Nullable String sMenuItemID)
-
toString
public String toString()
- Overrides:
toStringin classcom.helger.scope.singleton.AbstractSingleton
-
-