Return to www.inductionframework.org

com.acciente.induction.resolver
Class ShortURLRedirectResolver

java.lang.Object
  extended by com.acciente.induction.resolver.ShortURLRedirectResolver
All Implemented Interfaces:
RedirectResolver

public class ShortURLRedirectResolver
extends java.lang.Object
implements RedirectResolver

ShortURLRedirectResolver

Author:
Adinath Raveendra Raj

Constructor Summary
ShortURLRedirectResolver(Config.RedirectMapping oRedirectMapping, java.lang.ClassLoader oClassLoader)
           
 
Method Summary
 java.lang.String resolve(java.lang.Class oClass)
          Called by Induction to resolve a redirect request defined on in terms of a target controller or view.
 java.lang.String resolve(java.lang.Class oClass, java.util.Map oURLQueryParameters)
          Called by Induction to resolve a redirect request defined on in terms of a target controller or view and map of query parameters.
 java.lang.String resolve(java.lang.Class oClass, java.lang.String sMethodName)
          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.Class oClass, java.lang.String sMethodName, java.util.Map oURLQueryParameters)
          Called by Induction to resolve a redirect request defined on in terms of a target controller and a specific target method in the controller and has URL query parameters.
 java.lang.String resolve(java.lang.String sURLPart)
          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.
 java.lang.String resolve(java.lang.String sURLPart, java.util.Map oURLQueryParameters)
          Called by Induction to resolve a redirect request defined on in terms of a target URL and URL query parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortURLRedirectResolver

public ShortURLRedirectResolver(Config.RedirectMapping oRedirectMapping,
                                java.lang.ClassLoader oClassLoader)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

resolve

public java.lang.String resolve(java.lang.Class oClass)
Description copied from interface: RedirectResolver
Called by Induction to resolve a redirect request defined on in terms of a target controller or view.

Specified by:
resolve in interface RedirectResolver
Parameters:
oClass - a class object representing a class that implements the Controller or interface or a view
Returns:
a string represting a complete URL

resolve

public java.lang.String resolve(java.lang.Class oClass,
                                java.util.Map oURLQueryParameters)
Description copied from interface: RedirectResolver
Called by Induction to resolve a redirect request defined on in terms of a target controller or view and map of query parameters.

Specified by:
resolve in interface RedirectResolver
Parameters:
oClass - a class object representing a class that implements the Controller or interface or a view
oURLQueryParameters - a map to be converted to URL query parameters
Returns:
a string represting a complete URL

resolve

public java.lang.String resolve(java.lang.Class oClass,
                                java.lang.String sMethodName)
Description copied from interface: RedirectResolver
Called by Induction to resolve a redirect request defined on in terms of a target controller and a specific target method in the controller.

Specified by:
resolve in interface RedirectResolver
Parameters:
oClass - a class object representing a class that implements the Controller interface
sMethodName - a specific method name in the controller that the client should redirect to
Returns:
a string represting a complete URL

resolve

public java.lang.String resolve(java.lang.Class oClass,
                                java.lang.String sMethodName,
                                java.util.Map oURLQueryParameters)
Description copied from interface: RedirectResolver
Called by Induction to resolve a redirect request defined on in terms of a target controller and a specific target method in the controller and has URL query parameters.

Specified by:
resolve in interface RedirectResolver
Parameters:
oClass - a class object representing a class that implements the Controller interface
sMethodName - a specific method name in the controller that the client should redirect to
oURLQueryParameters - a map to be converted to URL query parameters
Returns:
a string represting a complete URL

resolve

public java.lang.String resolve(java.lang.String sURLPart)
Description copied from interface: RedirectResolver
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.

Specified by:
resolve in interface RedirectResolver
Parameters:
sURLPart - a string representing a complete or partial URL
Returns:
a string represting a complete URL

resolve

public java.lang.String resolve(java.lang.String sURLPart,
                                java.util.Map oURLQueryParameters)
Description copied from interface: RedirectResolver
Called by Induction to resolve a redirect request defined on in terms of a target URL and URL query parameters. 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.

Specified by:
resolve in interface RedirectResolver
Parameters:
sURLPart - a string representing a complete or partial URL
oURLQueryParameters - a map to be converted to URL query parameters
Returns:
a string represting a complete URL

Return to www.inductionframework.org

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