diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2020-03-17 10:27:12 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2020-03-17 15:14:34 +0100 |
commit | d0e879d09ed8f63bab738b461a7365d5be292c7c (patch) | |
tree | 2a3907d0620ab5d8a3188a70c7e01e77350c16f9 /config-model | |
parent | 58c77c37f204b724c71a1dfad2ef25fcbd3a5a25 (diff) |
Group public methods above private
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/container/http/AccessControl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/http/AccessControl.java b/config-model/src/main/java/com/yahoo/vespa/model/container/http/AccessControl.java index 09f36fcce14..925e2c7d760 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/http/AccessControl.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/http/AccessControl.java @@ -112,6 +112,10 @@ public final class AccessControl { .collect(Collectors.toCollection(ArrayList::new)); } + public static boolean hasHandlerThatNeedsProtection(ApplicationContainerCluster cluster) { + return cluster.getHandlers().stream().anyMatch(AccessControl::handlerNeedsProtection); + } + private Stream<Binding> getHandlerBindings() { return handlers.stream() .filter(this::shouldHandlerBeProtected) @@ -147,10 +151,6 @@ public final class AccessControl { return Stream.of("http://*/").map(protocol -> protocol + servlet.bindingPath); } - public static boolean hasHandlerThatNeedsProtection(ApplicationContainerCluster cluster) { - return cluster.getHandlers().stream().anyMatch(AccessControl::handlerNeedsProtection); - } - private static boolean handlerNeedsProtection(Handler<?> handler) { return ! isBuiltinGetOnly(handler) && hasNonMbusBinding(handler); } |