aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/tests/com/yahoo/jrt/SimpleRequestAccessFilter.java
blob: 81ef519de5a14a52dff28db57a7f53354eef0cbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;

/**
 * @author bjorncs
 */
class SimpleRequestAccessFilter implements RequestAccessFilter {
    volatile boolean invoked = false, allowed = true;
    @Override public boolean allow(Request r) { invoked = true; return allowed; }
}