org.jboss.seam.core
Class Redirect

java.lang.Object
  extended by org.jboss.seam.core.Redirect
All Implemented Interfaces:
Serializable

@Name(value="redirect")
@Intercept(value=NEVER)
@Scope(value=CONVERSATION)
public class Redirect
extends Object
implements Serializable

Convenient API for performing browser redirects with parameters.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
Redirect()
           
 
Method Summary
 void captureCurrentRequest()
          Capture the view id and request parameters from the current request and squirrel them away so we can return here later in the conversation.
 void execute()
          Perform the redirect
 Map<String,Object> getParameters()
          Get all the request parameters that have been set
 String getViewId()
          Get the JSF view id to redirect to
static Redirect instance()
           
 void setParameter(String name, Object value)
          Set a request parameter value
 void setViewId(String viewId)
          Set the JSF view id to redirect to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redirect

public Redirect()
Method Detail

getViewId

public String getViewId()
Get the JSF view id to redirect to


setViewId

public void setViewId(String viewId)
Set the JSF view id to redirect to

Parameters:
viewId - any JSF view id

getParameters

public Map<String,Object> getParameters()
Get all the request parameters that have been set


setParameter

public void setParameter(String name,
                         Object value)
Set a request parameter value


captureCurrentRequest

public void captureCurrentRequest()
Capture the view id and request parameters from the current request and squirrel them away so we can return here later in the conversation.


execute

public void execute()
Perform the redirect


instance

public static Redirect instance()