All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carma.swagger.doclet.sample.resources.SubResource Maven / Gradle / Ivy

package com.carma.swagger.doclet.sample.resources;

import com.sun.jersey.api.core.ResourceContext;

import javax.ws.rs.Path;
import javax.ws.rs.core.Context;

public class SubResource {
    @Context
    private ResourceContext resourceContext;

    @Path("greetings")
    public GreetingsResource subResource() {
        return resourceContext.getResource(GreetingsResource.class);
    }

    @Path("sub")
    public SubResource recursiveSubResource() {
        return resourceContext.getResource(SubResource.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy