aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/tests/com/yahoo/jrt/SimpleRequestAccessFilter.java
blob: 590397916b94db8ca73cdb220c7ffcf0b026c4df (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;// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

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