PathParam how to set Regex to allow URL?
I am using @PathParam and the request for开发者_运维问答mat is like this:
@Path("/XXX/XXX/{testvariable:[\\\\s\\\\S]+}")
Here, testvariable can take values like http://google.com/myname.txt, 191.123.122.333 or in short a String with any special characters. The regex that I used doesn't seem to allow the value "http://google.com/myname.txt" for this.
I get response saying, .No operation matching request path
.
精彩评论