Skip to main content

REST-Resource with path in URL

2 replies [Last post]
qpool_char
Offline
Joined: 2006-05-16

Hello,

i would like to provide a RESTful resource that looks like this:

@Path/entity/{url}
public void doSomething(@PathParam("url") String url) {....}

The problem is that Jersey doesn't invoke that method because a call on this service normally looks like this:

GET ..... /entity/myFolder/mySubfolder/myEntity

so that Jersey seems to have problems with parsing that request.

Is there a recommended solution for this common problem?

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
qpool_char
Offline
Joined: 2006-05-16

Found the solution myself:

@Path/entity/{url:.+}
public void doSomething(@PathParam("url") String url) {....}

wjygl
Offline
Joined: 2011-03-30

I have observed many companies use it for shoes along a&f lång tees the lines of Converse produced by Ian Ginoza as tribute to Jack Purcell, and Gourmet II Due, who arrived out with an oxygen Jordan-y sort sneaker in March. They are now expanding the use using the materials by incorporating it in even more street savvy sneaks. It definitely may properly be an superb assortment of materials for footwear, getting pretty durable and consuming water resistant. But by far, the prettiest example using using this leather-based could possibly be found inside the LV handbag assortment itself. quickly after all, we should give credit history to individuals who began the craze.