com.acciente.induction.controller
Class Redirect

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

public class Redirect
extends Object

Used to instruct the client to redirect.

Author:
Adinath Raveendra Raj

Constructor Summary
Redirect(Class oTargetClass)
          A redirect object defined in terms of the controller or view class to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL.
Redirect(Class oTargetClass, Map oURLQueryParameters)
          A redirect object defined in terms of the controller or view class to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL.
Redirect(Class oTargetClass, String sTargetMethodName)
          A redirect object defined in terms of the controller and method to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL.
Redirect(Class oTargetClass, String sTargetMethodName, Map oURLQueryParameters)
          A redirect object defined in terms of the controller and method to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL.
Redirect(Redirect oRedirect)
          This is a copy constructor, very convenient when needed!
Redirect(Redirect oRedirect, Map oReplacementURLQueryParameters)
          This is a copy constructor which allow changing the query params in the copy, very convenient when needed!
Redirect(String sURL)
          A redirect object defined directly in terms of the URL to which the client should redirect to.
Redirect(String sURL, Map oURLQueryParameters)
          A redirect object defined directly in terms of the URL to which the client should redirect to.
 
Method Summary
 Class getTargetClass()
           
 String getTargetMethodName()
           
 String getTargetURL()
           
 Map getTargetURLQueryParameters()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Redirect

public Redirect(Redirect oRedirect)
This is a copy constructor, very convenient when needed!

Parameters:
oRedirect - the redirect object to make a clone of

Redirect

public Redirect(Redirect oRedirect,
                Map oReplacementURLQueryParameters)
This is a copy constructor which allow changing the query params in the copy, very convenient when needed!

Parameters:
oRedirect - the redirect object to make a clone of
oReplacementURLQueryParameters - this maps replace the query params in the original redirect

Redirect

public Redirect(Class oTargetClass)
A redirect object defined in terms of the controller or view class to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL.

Parameters:
oTargetClass - a class object representing a class that implements the Controller interface or one of the view interfaces.

Redirect

public Redirect(Class oTargetClass,
                Map oURLQueryParameters)
A redirect object defined in terms of the controller or view class to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL.

Parameters:
oTargetClass - a class object representing a class that implements the Controller interface or one of the view interfaces.
oURLQueryParameters - a map to be converted to URL query parameters

Redirect

public Redirect(Class oTargetClass,
                String sTargetMethodName)
A redirect object defined in terms of the controller and method to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL. This method should not be used to redirect to a view since a method name does not make sense for a view.

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

Redirect

public Redirect(Class oTargetClass,
                String sTargetMethodName,
                Map oURLQueryParameters)
A redirect object defined in terms of the controller and method to which the client should redirect, Induction uses the redirect resolver to map the controller or view name to a URL. This method should not be used to redirect to a view since a method name does not make sense for a view.

Parameters:
oTargetClass - a class representing that implements the Controller interface
sTargetMethodName - a specific method name in the controller that the client should redirect to
oURLQueryParameters - a map to be converted to URL query parameters

Redirect

public Redirect(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. The default resolver prefixes the URL the URL base parameter defined in the induction config.

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

Redirect

public Redirect(String sURL,
                Map oURLQueryParameters)
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. The default resolver prefixes the URL the URL base parameter defined in the induction config.

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

getTargetClass

public Class getTargetClass()

getTargetMethodName

public String getTargetMethodName()

getTargetURL

public String getTargetURL()

getTargetURLQueryParameters

public Map getTargetURLQueryParameters()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2013 Acciente, LLC. All Rights Reserved.