org.exoplatform.social.common.router
Class ExoRouter.Route
java.lang.Object
org.exoplatform.social.common.router.ExoRouter.Route
- Enclosing class:
- ExoRouter
public static class ExoRouter.Route
- extends Object
Route class which contains path, action & argument list.
- Author:
- thanhvc
|
Method Summary |
void |
addParams(String params)
|
void |
compute()
|
Map<String,String> |
matches(String path)
Base on defined Pattern, when provided URI path,
this method will extract all of parameters path value
in given path which reflects in defined Pattern
Example:
defined Pattern = "/{pageID}/topic/{topicID}"
invokes:: matches("1256/topic/topic544343");
result: Map = {"pageID" -> "1256"}, {"topicID" -> "topic544343"} |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path
public String path
action
public String action
routesFile
public String routesFile
localArgs
public Map<String,String> localArgs
routesFileLine
public int routesFileLine
ExoRouter.Route
public ExoRouter.Route()
compute
public void compute()
addParams
public void addParams(String params)
matches
public Map<String,String> matches(String path)
- Base on defined Pattern, when provided URI path,
this method will extract all of parameters path value
in given path which reflects in defined Pattern
Example:
defined Pattern = "/{pageID}/topic/{topicID}"
invokes:: matches("1256/topic/topic544343");
result: Map = {"pageID" -> "1256"}, {"topicID" -> "topic544343"}
- Parameters:
path - : given URI path
- Returns:
Copyright © 2013 eXo Platform SAS. All Rights Reserved.