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:
Serializable
- Direct Known Subclasses:
NonResettingRestartException
,RedirectToUrlException
,ResetResponseException
- Enclosing class:
- RequestHandlerExecutor
public static class RequestHandlerExecutor.ReplaceHandlerException extends RuntimeException
Exception 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 Throwable
fillInStackTrace()
boolean
getRemoveScheduled()
Should a scheduled handler be removed before replacing the handlerIRequestHandler
getReplacementRequestHandler()
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classThrowable
- See Also:
Throwable.fillInStackTrace()
-
-