Package org.apache.wicket
Class RestartResponseAtInterceptPageException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
-
- org.apache.wicket.request.flow.ResetResponseException
-
- org.apache.wicket.RestartResponseAtInterceptPageException
-
- All Implemented Interfaces:
Serializable
public class RestartResponseAtInterceptPageException extends ResetResponseException
Causes Wicket to interrupt current request processing and immediately redirect to an intercept page.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestartResponseAtInterceptPageException(Class<? extends Page> interceptPageClass)
Redirects to the specified intercept page, this will result in a bookmarkable redirect.RestartResponseAtInterceptPageException(Class<? extends Page> interceptPageClass, PageParameters parameters)
Redirects to the specified intercept page, this will result in a bookmarkable redirect.RestartResponseAtInterceptPageException(Page interceptPage)
Redirects to the specifiedinterceptPage
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,List<StringValue>>
getOriginalPostParameters()
static Url
getOriginalUrl()
-
Methods inherited from class org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RestartResponseAtInterceptPageException
public RestartResponseAtInterceptPageException(Page interceptPage)
Redirects to the specifiedinterceptPage
.- Parameters:
interceptPage
-
-
RestartResponseAtInterceptPageException
public RestartResponseAtInterceptPageException(Class<? extends Page> interceptPageClass)
Redirects to the specified intercept page, this will result in a bookmarkable redirect.- Parameters:
interceptPageClass
-
-
RestartResponseAtInterceptPageException
public RestartResponseAtInterceptPageException(Class<? extends Page> interceptPageClass, PageParameters parameters)
Redirects to the specified intercept page, this will result in a bookmarkable redirect.- Parameters:
interceptPageClass
-parameters
-
-
-
Method Detail
-
getOriginalUrl
public static Url getOriginalUrl()
- Returns:
- the url of the request when the interception happened or
null
ornull
if there was no interception yet
-
getOriginalPostParameters
public static Map<String,List<StringValue>> getOriginalPostParameters()
- Returns:
- the post parameters of thе request when the interception happened
or
null
if there was no interception yet
-
-