users@jersey.java.net

[Jersey] How to call a certain method with following URI

From: Rajesh Khan <rajeshkhan808_at_gmail.com>
Date: Wed, 11 Apr 2012 14:00:47 -0600

The GET of the following is triggered with the following uri

/PathA/SomePathA

@Path("/PathA")
public class SubscriptionEntry
{
  @Path("{PathA}")
  public SomeType SomeMethod(@PathParam("parA") String userip)
  {
            //This is called!!! with /PathA/SomePathA
           return new SomeResource(uriInfo,request,userip,httpreq);
  }
}

where SomeResource is something like this

public class SomeResource
{
  @GET
  public Type AnotherMethod
  {
        .....
        .....
  }

      @Path({"What is suppose to be here???? since this class has no name??}")
      public MyType MyMethod()
      {....

      }


}

MY Question is how can i adjust the class above (What is needed in path) so
that the MyMethod is triggered with uris like

/PathA/SomePathA/Test

or

/PathA/SomePathA/SomePathB/Test

I tried doing something like following but it does not work

@Path("/Test")
      public MyType MyMethod() {}

Any suggestions on how i could make this work or what i am missing ??