Module org.apache.wicket.request
Class RedirectRequestHandler
java.lang.Object
org.apache.wicket.request.http.handler.RedirectRequestHandler
- All Implemented Interfaces:
IRequestHandler
A request handler that redirects to the given url.
the url should be one of the following:
- Fully qualified "http://foo.com/bar"
- Relative to the Wicket filter/servlet, e.g. "?wicket:interface=foo", "mounted_page"
- Absolute within your web application's context root, e.g. "/foo.html"
- Author:
- igor.vaynberg, jcompagner
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRedirectRequestHandler
(String redirectUrl) RedirectRequestHandler
(String redirectUrl, int status) -
Method Summary
Modifier and TypeMethodDescriptionint
void
respond
(IRequestCycle requestCycle) Generates a response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.request.IRequestHandler
detach
-
Constructor Details
-
RedirectRequestHandler
- Parameters:
redirectUrl
- URL to redirect to.
-
RedirectRequestHandler
- Parameters:
redirectUrl
- URL to redirect to.status
- 301 (Moved permanently) or 302 (Moved temporarily)
-
-
Method Details
-
getRedirectUrl
- Returns:
- redirect url
-
getStatus
- Returns:
- http redirect status code
-
mode
-
respond
Description copied from interface:IRequestHandler
Generates a response.- Specified by:
respond
in interfaceIRequestHandler
- Parameters:
requestCycle
- the current request cycle
-