summaryrefslogtreecommitdiffstats
path: root/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/client/filter/ResponseFilter.java
blob: 5fffc8312d75e0b4919f0fc8261d2b2d3edb65bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.client.filter;

/**
 * This interface can be implemented to define custom behavior that gets invoked before the response bytes are processed.
 * Authorization, proxy authentication and redirects processing all happen after the filters get executed.
 *
 * @author <a href="mailto:alain@yahoo-inc.com">Alain Wan Buen Cheong</a>
 */
public interface ResponseFilter {

    public ResponseFilterContext filter(ResponseFilterContext filterContext) throws FilterException;

}