aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/jdisc/http/filter/chain/EmptyRequestFilter.java
blob: bce4cfe8ab51895fa456363fc3399ad7b78370a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.filter.chain;

import com.yahoo.jdisc.NoopSharedResource;
import com.yahoo.jdisc.handler.ResponseHandler;
import com.yahoo.jdisc.http.HttpRequest;
import com.yahoo.jdisc.http.filter.RequestFilter;

/**
 * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
 */
public final class EmptyRequestFilter extends NoopSharedResource implements RequestFilter {

    public static final RequestFilter INSTANCE = new EmptyRequestFilter();

    private EmptyRequestFilter() {
        // hide
    }

    @Override
    public void filter(HttpRequest request, ResponseHandler handler) {

    }
}