Class ExoRouter.Route
java.lang.Object
org.exoplatform.social.common.router.ExoRouter.Route
- Enclosing class:
ExoRouter
Route class which contains path, action and argument list.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcompute()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<String, String> = {"pageID" -> "1256"}, {"topicID" -> "topic544343"}
-
Field Details
-
path
-
action
-
routesFile
-
localArgs
-
routesFileLine
public int routesFileLine
-
-
Constructor Details
-
Route
public Route()
-
-
Method Details
-
compute
public void compute() -
addParams
-
matches
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<String, String> = {"pageID" -> "1256"}, {"topicID" -> "topic544343"}- Parameters:
path- : given URI path- Returns:
-