|
Return to www.inductionframework.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.acciente.induction.resolver.URLPathRedirectResolver
public class URLPathRedirectResolver
This class is an illustrative implementation of a RedirectResolver that works in a manner consistent to the scheme used by the default ControllerResolver class, URLPathControllerResolver. If you are going to use Induction redirect support please replace this class with an implementation that would make sense for your application.
Constructor Summary | |
---|---|
URLPathRedirectResolver(Config.RedirectResolver oRedirectResolverConfig,
javax.servlet.ServletConfig oServletConfig)
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLPathRedirectResolver(Config.RedirectResolver oRedirectResolverConfig, javax.servlet.ServletConfig oServletConfig)
Method Detail |
---|
public java.lang.String resolve(java.lang.Class oControllerClass)
RedirectResolver
resolve
in interface RedirectResolver
oControllerClass
- a class object representing a class that implements the Controller interface
public java.lang.String resolve(java.lang.Class oControllerClass, java.lang.String sControllerMethodName)
RedirectResolver
resolve
in interface RedirectResolver
oControllerClass
- a class object representing a class that implements the Controller interfacesControllerMethodName
- a specific method name in the controller that the client
should redirect to
public java.lang.String resolve(java.lang.String sURL)
RedirectResolver
resolve
in interface RedirectResolver
sURL
- a string representing a complete or partial URL
|
Return to www.inductionframework.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |