jax rs - How to make in Jax-rs @Path to accept an url encoded? -


i'm trying have route working:

http://localhost:8080/api/settings/http%3a%2f%2fdbpedia.org%2fresource%2fapplication_software 

where http://dbpedia.org/resource/application_software id item want settings. instead, i've got working:

http://localhost:8080/api/settings/http://dbpedia.org/resource/application_software 

which not if want pass other parameters after url http://dbpedia.org/resource/application_software.

the function code is:

@get @path("/settings/{uri:^(https?|ftp|file)://[-a-za-z0-9+&@#/%?=~_|!:,.;]*[-a-za-z0-9+&@#/%=~_|]}") public response geturisettings(         @pathparam("uri") string uri,          @context final httpservletresponse response) {      logger.debug("getting settings of " + uri); ... 

i'm validating have url in paramenter regex, cannot pass urlencoded...

how can work around problem have url id encoded on request?

thanks!


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -