/forgerock/openam-v13/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/sms/ |
H A D | SmsRouteTreeLeafBuilder.java | 35 private final Function<String, Boolean> handlesFunction; field in class:SmsRouteTreeLeafBuilder 41 * @param handlesFunction A predicate function that returns true if the leaf handles the service name supplied. 43 SmsRouteTreeLeafBuilder(String uriTemplate, Function<String, Boolean> handlesFunction) { argument 44 this(uriTemplate, handlesFunction, null); 50 * @param handlesFunction A predicate function that returns true if the leaf handles the service name supplied. 53 SmsRouteTreeLeafBuilder(String uriTemplate, Function<String, Boolean> handlesFunction, Filter filter) { argument 55 Reject.ifNull(uriTemplate, handlesFunction); 57 this.handlesFunction = handlesFunction; 65 return new SmsRouteTreeLeaf(parent.authzModules, parent.defaultAuthzModule, router, handlesFunction, filte [all...] |
H A D | SmsRouteTreeLeaf.java | 37 private final Function<String, Boolean> handlesFunction; field in class:SmsRouteTreeLeaf 45 * @param handlesFunction A {@code Function} that determines whether this router should handle 52 Function<String, Boolean> handlesFunction, Filter filter, ResourcePath path) { 54 this.handlesFunction = handlesFunction; 58 * Returns this {@code SmsRouteTreeLeaf} if the {@code handlesFunction} returns {@code true}, 66 if (handlesFunction.apply(serviceName)) { 50 SmsRouteTreeLeaf(Map<MatchingResourcePath, CrestAuthorizationModule> authzModules, CrestAuthorizationModule defaultAuthzModule, Router router, Function<String, Boolean> handlesFunction, Filter filter, ResourcePath path) argument
|
H A D | SmsRouteTreeBuilder.java | 40 private final Function<String, Boolean> handlesFunction; field in class:SmsRouteTreeBuilder 55 * @param handlesFunction The handle function for requests handled by this node. 57 SmsRouteTreeBuilder(String uriTemplate, Function<String, Boolean> handlesFunction, argument 61 this.handlesFunction = handlesFunction; 79 if (handlesFunction != null) { 80 tree.addSubTree(new SmsRouteTreeLeaf(parent.authzModules, parent.defaultAuthzModule, router, handlesFunction,
|
H A D | SmsRouteTree.java | 95 * @param handlesFunction The function that determines whether this router should handle the 100 static SmsRouteTreeBuilder branch(String uriTemplate, Function<String, Boolean> handlesFunction, argument 102 return new SmsRouteTreeBuilder(uriTemplate, handlesFunction, subTreeBuilders); 109 * @param handlesFunction The function that determines whether this router should handle the 113 static SmsRouteTreeBuilder leaf(String uriTemplate, Function<String, Boolean> handlesFunction) { argument 114 return new SmsRouteTreeLeafBuilder(uriTemplate, handlesFunction); 117 static SmsRouteTreeBuilder filter(String uriTemplate, Function<String, Boolean> handlesFunction, Filter filter) { argument 118 return new SmsRouteTreeLeafBuilder(uriTemplate, handlesFunction, filter);
|
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/sms/tree/ |
H A D | SmsRouteTreeBuilder.java | 52 private Predicate<String> handlesFunction = alwaysFalse(); field in class:SmsRouteTreeBuilder 96 * @param handlesFunction The function that determines whether this router should handle the 101 public static SmsRouteTreeBuilder branch(String uriTemplate, Predicate<String> handlesFunction, argument 103 return new SmsRouteTreeBuilder(uriTemplate).handles(handlesFunction).subTrees(subTreeBuilders); 110 * @param handlesFunction The function that determines whether this router should handle the 116 public static SmsRouteTreeBuilder leaf(String uriTemplate, Predicate<String> handlesFunction, argument 118 return new SmsRouteTreeBuilder(uriTemplate).handles(handlesFunction).supportGeneralActions(generalActions); 125 * @param handlesFunction The function that determines whether this router should handle the 130 public static SmsRouteTreeBuilder filter(String uriTemplate, Predicate<String> handlesFunction, Filter filter) { argument 131 return new SmsRouteTreeBuilder(uriTemplate).handles(handlesFunction) 150 handles(Predicate<String> handlesFunction) argument [all...] |
H A D | SmsRouteTree.java | 115 private final Predicate<String> handlesFunction; field in class:SmsRouteTree 158 ResourcePath path, Predicate<String> handlesFunction, String uriTemplate, boolean supportGeneralActions) { 166 this.handlesFunction = handlesFunction; 183 if (handlesFunction.apply(serviceName)) { 156 SmsRouteTree(Map<MatchingResourcePath, CrestAuthorizationModule> authzModules, CrestAuthorizationModule defaultAuthzModule, boolean isRoot, SmsRouter router, Filter filter, ResourcePath path, Predicate<String> handlesFunction, String uriTemplate, boolean supportGeneralActions) argument
|
/forgerock/openam-v13/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/sms/ |
H A D | SmsRouteTreeLeafTest.java | 42 Function<String, Boolean> handlesFunction = new Function<String, Boolean>() { 51 router, handlesFunction, null, resourcePath("")); 54 @DataProvider(name = "handlesFunction") 62 @Test(dataProvider = "handlesFunction")
|
/forgerock/openam/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/sms/tree/ |
H A D | SmsRouteTreeLeafTest.java | 39 Predicate<String> handlesFunction = new Predicate<String>() { 46 router, null, resourcePath(""), handlesFunction, null, false); 49 @DataProvider(name = "handlesFunction") 57 @Test(dataProvider = "handlesFunction")
|