String url = a.getRestOfUrl();
public HttpResponse doZot(StaplerRequest req) { assertEquals("testRestOfUrl/bar/zot", req.getAncestors().get(0).getRestOfUrl()); assertEquals("bar/zot", req.getAncestors().get(1).getRestOfUrl()); assertEquals("zot", req.getAncestors().get(2).getRestOfUrl()); return HttpResponses.ok(); } }
String url = a.getRestOfUrl();