3
다음 URL을 사용하십시오.JAX-RS로 전체 하위 경로를 얻으려면 어떻게해야합니까?
http://doma.in/context/resource/some/.../undefined
나는 /some/.../undefined
@Path("/resource")
class Response Resource {
final String path; // "/some/.../undefined"
}
감사 인 ../resource
후 경로 이름을 싶어.
UPDATE
대답 등의 방법이있다 할 것입니다. 내가
http://.../context/resource/paths/a/b/c
를 호출 할 때
@Path("/resource")
class class Resource {
@Path("/{paths: .+}")
public String readPaths() {
final String paths
= uriInfo.getPathParameters().getFirst("paths");
}
@Context
private UriInfo uriInfo;
}
나는
a/b/c
를 얻을.