What is the recommended way to set GET parameters on a Restlet request?
Posted
by Simon Nickerson
on Stack Overflow
See other posts from Stack Overflow
or by Simon Nickerson
Published on 2010-03-15T10:02:51Z
Indexed on
2010/03/15
10:09 UTC
Read the original article
Hit count: 242
What is the recommended way of setting GET query parameters on a Restlet Request
object?
I think I can see how to get them out of the request using getQueryAsForm()
, but how do they get set in the first place?
At the moment, I am adding them manually to the URL using a StringBuilder
and java.net.URLEncoder
, but it seems like there should be a better way.
© Stack Overflow or respective owner