summaryrefslogtreecommitdiffstats
path: root/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/DryRunGatewayConnectionFactory.java
blob: 21a18ed59831a392d605f574ecaeef6cb0e540cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.client.core.communication;

import com.yahoo.vespa.http.client.config.Endpoint;

/**
 * @author bratseth
 */
public class DryRunGatewayConnectionFactory implements GatewayConnectionFactory {

    private final Endpoint endpoint;

    public DryRunGatewayConnectionFactory(Endpoint endpoint) {
        this.endpoint = endpoint;
    }

    @Override
    public GatewayConnection newConnection() {
        return new DryRunGatewayConnection(endpoint);
    }

}