Return to www.inductionframework.org

com.acciente.induction.resolver
Class ShortURLControllerResolver

java.lang.Object
  extended by com.acciente.induction.resolver.ShortURLControllerResolver
All Implemented Interfaces:
ControllerResolver

public class ShortURLControllerResolver
extends java.lang.Object
implements ControllerResolver

ShortURLControllerResolver

Author:
Adinath Raveendra Raj

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.acciente.induction.resolver.ControllerResolver
ControllerResolver.Resolution
 
Constructor Summary
ShortURLControllerResolver(Config.ControllerMapping oControllerMapping, java.lang.ClassLoader oClassLoader)
           
 
Method Summary
 ControllerResolver.Resolution resolve(javax.servlet.http.HttpServletRequest oRequest)
          This method should resolve the the specified HTTP request to the class name of a controller and method name (within the same class) to be invoked
 ControllerResolver.Resolution resolve(java.lang.Throwable oThrowable)
          This method is called if an exception occurs during controller or view execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortURLControllerResolver

public ShortURLControllerResolver(Config.ControllerMapping oControllerMapping,
                                  java.lang.ClassLoader oClassLoader)
                           throws java.io.IOException,
                                  java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

resolve

public ControllerResolver.Resolution resolve(javax.servlet.http.HttpServletRequest oRequest)
Description copied from interface: ControllerResolver
This method should resolve the the specified HTTP request to the class name of a controller and method name (within the same class) to be invoked

Specified by:
resolve in interface ControllerResolver
Parameters:
oRequest - the HTTP request context in which the resolution is requested
Returns:
an object containing the class name of the controller to be invoked and the method name within same

resolve

public ControllerResolver.Resolution resolve(java.lang.Throwable oThrowable)
Description copied from interface: ControllerResolver
This method is called if an exception occurs during controller or view execution. This method is expected to resolve the specified exception to the class name of a controller and method name (within the same class) to handle the error

Specified by:
resolve in interface ControllerResolver
Parameters:
oThrowable - the exception context in which the resolution is requested
Returns:
an object containing the class name of the controller to be invoked and the method name within same

Return to www.inductionframework.org

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