org.apache.wicket.request.http.handler
Class RedirectRequestHandler
java.lang.Object
org.apache.wicket.request.http.handler.RedirectRequestHandler
- All Implemented Interfaces:
- IRequestHandler
public class RedirectRequestHandler
- extends Object
- implements 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
Method Summary |
void |
detach(IRequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and
that cleaning up of the subject(s) of this target may be done. |
void |
respond(IRequestCycle requestCycle)
FIXME javadoc - what's special about this implementation? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RedirectRequestHandler
public RedirectRequestHandler(String redirectUrl)
- Parameters:
redirectUrl
- URL to redirect to.
RedirectRequestHandler
public RedirectRequestHandler(String redirectUrl,
int status)
- Parameters:
redirectUrl
- URL to redirect to.status
- 301 (Moved permanently) or 302 (Moved temporarily)
detach
public void detach(IRequestCycle requestCycle)
- Description copied from interface:
IRequestHandler
- This method is called at the end of a request cycle to indicate that processing is done and
that cleaning up of the subject(s) of this target may be done.
- Specified by:
detach
in interface IRequestHandler
- Parameters:
requestCycle
- the current request cycle- See Also:
org.apache.wicket.request.IRequestHandler#detach(org.apache.wicket.request.cycle.RequestCycle)
respond
public void respond(IRequestCycle requestCycle)
- FIXME javadoc - what's special about this implementation?
- Specified by:
respond
in interface IRequestHandler
- Parameters:
requestCycle
- the current request cycle- See Also:
org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.cycle.RequestCycle)
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.