com.taursys.servlet.respond
Class ClientRedirectResponder

java.lang.Object
  extended bycom.taursys.servlet.respond.AbstractResponder
      extended bycom.taursys.servlet.respond.ClientRedirectResponder
All Implemented Interfaces:
Responder

public class ClientRedirectResponder
extends AbstractResponder

ClientRedirectResponder redirects the client to a URL as the response.

Version:
1.0
Author:
Marty Phelan

Constructor Summary
ClientRedirectResponder()
          Constructs a new ClientRedirectResponder
ClientRedirectResponder(java.lang.String redirectURL)
          Constructs a new ClientRedirectResponder
 
Method Summary
 java.lang.String getRedirectURL()
          Get the URL to redirect the client to.
 void respond()
          Responds by redirecting client the the redirectURL.
 void setRedirectURL(java.lang.String newRedirectURL)
          Set the URL to redirect the client to.
 
Methods inherited from class com.taursys.servlet.respond.AbstractResponder
getServletForm, setServletForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientRedirectResponder

public ClientRedirectResponder()
Constructs a new ClientRedirectResponder


ClientRedirectResponder

public ClientRedirectResponder(java.lang.String redirectURL)
Constructs a new ClientRedirectResponder

Parameters:
redirectURL - url where to redirect client
Method Detail

respond

public void respond()
             throws java.lang.Exception
Responds by redirecting client the the redirectURL.

Specified by:
respond in interface Responder
Specified by:
respond in class AbstractResponder
Throws:
java.lang.Exception - if problem responding

setRedirectURL

public void setRedirectURL(java.lang.String newRedirectURL)
Set the URL to redirect the client to.

Parameters:
newRedirectURL - the URL to redirect the client to.

getRedirectURL

public java.lang.String getRedirectURL()
Get the URL to redirect the client to.

Returns:
the URL to redirect the client to.


Copyright © 2007 Martin T Phelan. All Rights Reserved.