wicket.request.target.basic
Class RedirectRequestTarget

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

public class RedirectRequestTarget
extends java.lang.Object
implements IRequestTarget

A RequestTarget that will sent a redirect url to the browser. Use this if you want to direct the browser to some external URL, like Google etc, immediantly. 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)
          Construct.
 
Method Summary
 void detach(RequestCycle requestCycle)
          This method is alled on 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.
 java.lang.Object getLock(RequestCycle requestCycle)
          Gets the lock to be used for synchronization.
 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)
Construct.

Parameters:
redirectUrl -
Method Detail

detach

public void detach(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
This method is alled on 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(wicket.RequestCycle)

getLock

public java.lang.Object getLock(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
Gets the lock to be used for synchronization.

Specified by:
getLock in interface IRequestTarget
Parameters:
requestCycle - the current request cycle
Returns:
Any lock to be used to synchronize this target or null if no synchronization is needed.
See Also:
IRequestTarget.getLock(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(wicket.RequestCycle)


Copyright © 2004-2007 Wicket developers. All Rights Reserved.