summaryrefslogtreecommitdiffstats
path: root/sample-apps/basic-search-java/src/main/java/com/yahoo/example/StringData.java
blob: 845f5906a5d3f632f0aa4ba576dd65239821d320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.example;

import com.yahoo.processing.Request;
import com.yahoo.processing.response.AbstractData;

public class StringData extends AbstractData {

    private final String string;

    public StringData(Request request, String string) {
        super(request);
        this.string = string;
    }

    @Override
    public String toString() {
        return string;
    }
}