blob: d411fcf644fb238b8bb709f3f9b72f9110d3730d (
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 Simon Thoresen Hult
*/
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();
}
}
|