|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.acciente.induction.dispatcher.resolver.URLResolver
public class URLResolver
This class is used to generate URLs dynamically from controller/view class names using the mapping rules defined for redirects.
Constructor Summary | |
---|---|
URLResolver(RedirectResolverExecutor oRedirectResolverExecutor,
javax.servlet.http.HttpServletRequest oHttpServletRequest)
|
Method Summary | |
---|---|
String |
resolve(Class oTargetClass)
Call to resolve a URL from a target controller or view. |
String |
resolve(Class oTargetClass,
Map oURLQueryParameters)
Call to resolve a URL from a target controller or view and a map of query parameters. |
String |
resolve(Class oControllerClass,
String sControllerMethodName)
Call to resolve a URL from a target controller and a specific target method in the controller. |
String |
resolve(Class oControllerClass,
String sControllerMethodName,
Map oURLQueryParameters)
Call to resolve a URL from a target controller and a specific target method in the controller and has URL query parameters. |
String |
resolve(String sURLPart)
Call to resolve a URL from a target URL, the URL may be a partial URL that this method is expected to complete. |
String |
resolve(String sURLPart,
Map oURLQueryParameters)
Use to resolve a URL from 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 |
---|
public URLResolver(RedirectResolverExecutor oRedirectResolverExecutor, javax.servlet.http.HttpServletRequest oHttpServletRequest)
Method Detail |
---|
public String resolve(Class oTargetClass)
oTargetClass
- a class object representing a class that implements the Controller or interface or a view
public String resolve(Class oTargetClass, Map oURLQueryParameters)
oTargetClass
- a class object representing a class that implements the Controller or interface or a viewoURLQueryParameters
- a map to be converted to URL query parameters
public String resolve(Class oControllerClass, String sControllerMethodName)
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 String resolve(Class oControllerClass, String sControllerMethodName, Map oURLQueryParameters)
oControllerClass
- a class object representing a class that implements the Controller interfacesControllerMethodName
- a specific method name in the controller that the client
should redirect tooURLQueryParameters
- a map to be converted to URL query parameters
public String resolve(String sURLPart)
sURLPart
- a string representing a complete or partial URL
public String resolve(String sURLPart, Map oURLQueryParameters)
sURLPart
- a string representing a complete or partial URLoURLQueryParameters
- a map to be converted to URL query parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |