com.sptci.echo2
Class RedirectListener

java.lang.Object
  extended by com.sptci.echo2.RedirectListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener
Direct Known Subclasses:
Logout.LogoutListener

public class RedirectListener
extends Object
implements ActionListener

An action listener to redirect the client browser to url.

Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: RedirectListener.java 3132 2007-04-24 01:14:11Z rakesh $
Author:
Rakesh Vidyadharan 2006-12-28
See Also:
Serialized Form

Field Summary
private  String url
          The URL to use to open the browser window.
 
Constructor Summary
RedirectListener(String url)
          Create a new instance of the listener for the specified url.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The action listener implementation.
protected  void redirect()
          Redirect the client browser to url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

private final String url
The URL to use to open the browser window.

Constructor Detail

RedirectListener

public RedirectListener(String url)
Create a new instance of the listener for the specified url.

Parameters:
url - The url to use.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
The action listener implementation. Redirect the client browser to url.

Specified by:
actionPerformed in interface ActionListener
See Also:
redirect()

redirect

protected void redirect()
Redirect the client browser to url.