summaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/main/java/com/yahoo/jdisc/test/NonWorkingRequestHandler.java
blob: 009fc1badf77f93a37bfb39d30833e200891cc62 (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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.test;

import com.yahoo.jdisc.NoopSharedResource;
import com.yahoo.jdisc.Request;
import com.yahoo.jdisc.handler.ContentChannel;
import com.yahoo.jdisc.handler.RequestHandler;
import com.yahoo.jdisc.handler.ResponseHandler;

/**
 * @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
 */
public final class NonWorkingRequestHandler extends NoopSharedResource implements RequestHandler {

    @Override
    public ContentChannel handleRequest(Request request, ResponseHandler handler) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void handleTimeout(Request request, ResponseHandler handler) {
        throw new UnsupportedOperationException();
    }
}