rest/rest-resources/src/main/java/org/apache/brooklyn/rest/filter/HaHotCheckResourceFilter.java [131:145]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected boolean isCallAllowedInAnyState(String uri) {
        // TODO use an annotation HaAnyStateAllowed or HaHotCheckRequired(false) instead of these ad hoc checks

        if (uri !=null) {
            uri = Strings.removeAllFromStart(uri, "/", "v1/");

            // user can log out anywhere they log in
            if (uri.startsWith("logout")) return true;

            // explicitly allow calls to shutdown
            // (if stopAllApps is specified, the method itself will fail; but we do not want to consume parameters here, that breaks things!)
            if ("server/shutdown".equals(uri)) return true;
        }
        return false;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



rest/rest-resources/src/main/java/org/apache/brooklyn/rest/filter/HaHotCheckHelperAbstract.java [87:99]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static boolean isCallAllowedInAnyState(String uri) {
        if (uri !=null) {
            uri = Strings.removeAllFromStart(uri, "/", "v1/");

            // user can log out anywhere they log in
            if (uri.startsWith("logout")) return true;

            // explicitly allow calls to shutdown
            // (if stopAllApps is specified, the method itself will fail; but we do not want to consume parameters here, that breaks things!)
            if ("server/shutdown".equals(uri)) return true;
        }
        return false;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



