aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/MockReply.java
blob: a58726b5cc43857d1e3b9662a7f9f04e40582a00 (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
25
26
27
28
29
30
31
32
33
34
35
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.server;

import com.yahoo.messagebus.Reply;
import com.yahoo.text.Utf8String;

/**
 * Minimal reply simulator.
 *
 * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
 */
class MockReply extends Reply {

    Object context;

    public MockReply(Object context) {
        this.context = context;
    }

    @Override
    public Utf8String getProtocol() {
        return null;
    }

    @Override
    public int getType() {
        return 0;
    }

    @Override
    public Object getContext() {
        return context;
    }

}