I am using RESTEasy 2.3 GA release on OC4J. I have a basic GET resource with
QueryParams and my parameters are UTF-8 encoded. According to RESTEeasy
documentation, these should have been automatically decoded but I am still
receiving encoded parameters inside my resource. The basic URL fragment looks
like this
documentsearch/v1.xml?dct=N%252BPR%252BFR%252BO
here's how my method is defined,
@GET
@Path("v1")
@Produces(value = { "application/json", "application/xml"})
public String doSearch(@QueryParam(value = "dct") String documentType) {
...
documentType = Encode.decode(documentType); //decodes the above param to
'N+PR+FR+O'
}
I shouldn't need to do this, right? Why is the inbuilt decoding not working?
Many thanks,
Sandeep
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users