summaryrefslogtreecommitdiffstats
path: root/container-test-jars/jersey-resources/src/main/java/com/yahoo/container/test/jars/jersey/resources/TestResourceBase.java
blob: c372472325241a251a8ffdc23dd116a9f8c13831 (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 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.test.jars.jersey.resources;

import javax.ws.rs.core.MediaType;
import javax.ws.rs.Produces;
import javax.ws.rs.GET;

/**
 * @author Tony Vaagenes
 * @author ollivir
 */
public class TestResourceBase {
    @GET
    @Produces({MediaType.TEXT_PLAIN})
    public String get() {
        return content(getClass());
    }

    public static String content(Class<? extends TestResourceBase> clazz) {
        return "Response from " + clazz.getName();
    }
}