QueryStringpublic class QueryString extends Object
Fields Summary |
---|
private StringBuffer | query |
Constructors Summary |
---|
public QueryString(String name, String value)
encode(name, value);
|
Methods Summary |
---|
public synchronized void | add(java.lang.String name, java.lang.String value)
query.append('&");
encode(name, value);
| private synchronized void | encode(java.lang.String name, java.lang.String value)
try {
query.append(URLEncoder.encode(name, "UTF-8"));
query.append('=");
query.append(URLEncoder.encode(value, "UTF-8"));
}
catch (UnsupportedEncodingException ex) {
throw new RuntimeException("Broken VM does not support UTF-8");
}
| public java.lang.String | getQuery()
return query.toString();
| public java.lang.String | toString()
return getQuery();
|
|