package org.jboss.resteasy.test.resource.path.resource;

import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;

/**
 * User: rsearls
 * Date: 2/17/17
 */
@Path("/noCapture")
public class ResourceLocatorRegexNonCapturingGroup {

    @Path("{name: (?:nobird|NOBIRD)}")
    public ResourceLocatorRegexCapturingGroupSubResourceNoPath nobird(@PathParam("name") String name) {
        return new ResourceLocatorRegexCapturingGroupSubResourceNoPath(name);
    }

    @Path("{name: (?:bird|BIRD)}")
    public ResourceLocatorRegexCapturingGroupSubResourceWithPath bird(@PathParam("name") String name) {
        return new ResourceLocatorRegexCapturingGroupSubResourceWithPath(name);
    }

    @Path("{name: a/(?:fly|FLY)/b}")
    public ResourceLocatorRegexCapturingGroupSubResourceWithPath fly(@PathParam("name") String name) {
        return new ResourceLocatorRegexCapturingGroupSubResourceWithPath(name);
    }

    @Path("{name: a/(?:nofly|NOFLY)/b}")
    public ResourceLocatorRegexCapturingGroupSubResourceNoPath nofly(@PathParam("name") String name) {
        return new ResourceLocatorRegexCapturingGroupSubResourceNoPath(name);
    }

}
