How would i get the last path parameter in on method.
@Path("{profile}/articles")
public getAllArticles(@PathParam("profile") String profile ){
}
@Path("{articleId}")
public getArticle(@PathParam("articleid") long id ){
}
I know how to get the recent path parameter like
articleId
in methodgetArticle
. but i want to get the previous path parameter in thegetArticle
method.ex: if the URL is
/{profile}/articles/{articleId}
. How would I get values of both{profile}
and{articleId}
in same method
PS: I know i can get that by breaking the URL,if I get path from UriInfo