Return to www.inductionframework.org

com.acciente.induction.resolver
Interface RedirectResolver

All Known Implementing Classes:
URLPathRedirectResolver

public interface RedirectResolver

This interface is used to abstract the algorithm used to map a redirect request to an actual URL

A class implementing this interface is expected to have a single public contructor adhering to the following convention:

- the single constructor should accepts no arguments or

- the single constructor should declare formal parameters using only the following types:

- javax.servlet.ServletContext


Method Summary
 java.lang.String resolve(java.lang.Class oControllerClass)
          Called by Induction to resolve a redirect request defined on in terms of a target controller.
 java.lang.String resolve(java.lang.Class oControllerClass, java.lang.String sControllerMethodName)
          Called by Induction to resolve a redirect request defined on in terms of a target controller and a specific target method in the controller.
 java.lang.String resolve(java.lang.String sURL)
          Called by Induction to resolve a redirect request defined on in terms of a target URL, the URL may be a partial URL that this method is expected to complete.
 

Method Detail

resolve

java.lang.String resolve(java.lang.Class oControllerClass)
Called by Induction to resolve a redirect request defined on in terms of a target controller.

Parameters:
oControllerClass - a class object representing a class that implements the Controller interface
Returns:
a string represting a complete URL

resolve

java.lang.String resolve(java.lang.Class oControllerClass,
                         java.lang.String sControllerMethodName)
Called by Induction to resolve a redirect request defined on in terms of a target controller and a specific target method in the controller.

Parameters:
oControllerClass - a class object representing a class that implements the Controller interface
sControllerMethodName - a specific method name in the controller that the client should redirect to
Returns:
a string represting a complete URL

resolve

java.lang.String resolve(java.lang.String sURL)
Called by Induction to resolve a redirect request defined on in terms of a target URL, the URL may be a partial URL that this method is expected to complete. The URL may even simply be a mnemonic reference that is mapped to a complete URL by this method.

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

Return to www.inductionframework.org

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