no.inspera.services.pedal.actions
Class Forward

java.lang.Object
  extended by no.inspera.services.pedal.actions.Forward
All Implemented Interfaces:
Result

public class Forward
extends java.lang.Object
implements Result

Forward result forwards user to some URL.

Since:
15.12.2007
Version:
$Id: Forward.java 45069 2008-05-29 08:25:25Z naimdjon $
Author:
Naimdjon Takhirov

Constructor Summary
protected Forward(java.lang.String url)
          Constructs a new Forward object with the url
 
Method Summary
 void processResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes result which causes forwarding user to the url.
 java.lang.String toString()
          Returns string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Forward

protected Forward(java.lang.String url)
Constructs a new Forward object with the url

Parameters:
url - the url to which user is to be forwarded.
Method Detail

processResult

public void processResult(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException
Processes result which causes forwarding user to the url.

Specified by:
processResult in interface Result
Parameters:
request - current request.
response - current reponse.
Throws:
javax.servlet.ServletException - if any exception occurs when forwarding.

toString

public java.lang.String toString()
Returns string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
string representation of this object.


Copyright © 2008 Naimdjon Takhirov (naimdjon@gmail.com). All Rights Reserved.