org.apache.wicket.request.target.basic
Class RedirectRequestTarget

java.lang.Object
  extended by org.apache.wicket.request.target.basic.RedirectRequestTarget
All Implemented Interfaces:
IRequestTarget

public class RedirectRequestTarget
extends java.lang.Object
implements IRequestTarget

A RequestTarget that will send a redirect url to the browser. Use this if you want to direct the browser to some external URL, like Google etc, immediately. Or if you want to redirect to a Wicket page. If you want to redirect with a delay the RedirectPage will do a meta tag redirect with a delay.

Author:
jcompagner

Constructor Summary
RedirectRequestTarget(java.lang.String redirectUrl)
          Your URL should be one of the following: Fully qualified "http://foo.com/bar" Relative to the Wicket filter/servlet, e.g.
 
Method Summary
 void detach(RequestCycle 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(RequestCycle requestCycle)
          Generates a response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectRequestTarget

public RedirectRequestTarget(java.lang.String redirectUrl)
Your URL should be one of the following:

Parameters:
redirectUrl - URL to redirect to.
Method Detail

detach

public void detach(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
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 IRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.detach(org.apache.wicket.RequestCycle)

respond

public void respond(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
Generates a response.

Specified by:
respond in interface IRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.respond(org.apache.wicket.RequestCycle)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.