Class ExoRouter.Route
- java.lang.Object
-
- org.exoplatform.social.common.router.ExoRouter.Route
-
-
Constructor Summary
Constructors Constructor Description Route()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParams(String params)voidcompute()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<String, String> = {"pageID" -> "1256"}, {"topicID" -> "topic544343"}
-
-
-
Method Detail
-
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<String, String> = {"pageID" -> "1256"}, {"topicID" -> "topic544343"}- Parameters:
path- : given URI path- Returns:
-
-