Package org.apache.wicket.request
Class RequestHandlerExecutor.ReplaceHandlerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
RedirectToUrlException,ResetResponseException
- Enclosing class:
- RequestHandlerExecutor
public static class RequestHandlerExecutor.ReplaceHandlerException extends java.lang.RuntimeExceptionException to stop current request handler and execute a new one.- Author:
- Matej Knopp
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplaceHandlerException(IRequestHandler replacementRequestHandler, boolean removeScheduled)Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablefillInStackTrace()booleangetRemoveScheduled()Should a scheduled handler be removed before replacing the handlerIRequestHandlergetReplacementRequestHandler()
-
-
-
Constructor Detail
-
ReplaceHandlerException
public ReplaceHandlerException(IRequestHandler replacementRequestHandler, boolean removeScheduled)
Construct.- Parameters:
replacementRequestHandler-removeScheduled- should a possibly scheduled handler be removed
-
-
Method Detail
-
getRemoveScheduled
public boolean getRemoveScheduled()
Should a scheduled handler be removed before replacing the handler
-
getReplacementRequestHandler
public IRequestHandler getReplacementRequestHandler()
- Returns:
- the RequestHandler that should be used to continue handling the request
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTracein classjava.lang.Throwable- See Also:
Throwable.fillInStackTrace()
-
-