Return to www.inductionframework.org

com.acciente.induction.controller
Class Redirect

java.lang.Object
  extended by com.acciente.induction.controller.Redirect

public class Redirect
extends java.lang.Object

Used to instruct the client to redirect.


Constructor Summary
Redirect(java.lang.Class oControllerClass)
          A redirect object defined in terms of the controller to which the client should redirect, Induction uses the redirect resolver to map the controller name to a URL.
Redirect(java.lang.Class oControllerClass, java.lang.String sControllerMethodName)
          A redirect object defined in terms of the controller to which the client should redirect, Induction uses the redirect resolver to map the controller name to a URL.
Redirect(java.lang.String sURL)
          A redirect object defined directly in terms of the URL to which the client should redirect to.
 
Method Summary
 java.lang.Class getControllerClass()
           
 java.lang.String getControllerMethodName()
           
 java.lang.String getURL()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redirect

public Redirect(java.lang.Class oControllerClass)
A redirect object defined in terms of the controller to which the client should redirect, Induction uses the redirect resolver to map the controller name to a URL.

Parameters:
oControllerClass - a class object representing a class that implements the Controller interface

Redirect

public Redirect(java.lang.Class oControllerClass,
                java.lang.String sControllerMethodName)
A redirect object defined in terms of the controller to which the client should redirect, Induction uses the redirect resolver to map the controller name to a URL.

Parameters:
oControllerClass - a class representing that implements the Controller interface
sControllerMethodName - a specific method name in the controller that the client should redirect to

Redirect

public Redirect(java.lang.String sURL)
A redirect object defined directly in terms of the URL to which the client should redirect to. The URL is still passed thru the redirect resolver which may choose to complete partial URLs or provide other services.

Parameters:
sURL - a string representing a complete or partial URL
Method Detail

getControllerClass

public java.lang.Class getControllerClass()

getControllerMethodName

public java.lang.String getControllerMethodName()

getURL

public java.lang.String getURL()

Return to www.inductionframework.org

Copyright (c) 2008 Acciente, LLC. All rights reserved.