public final class SimpleQuery extends java.lang.Object implements Query
Query derived from an encoded query string.| Constructor and Description |
|---|
SimpleQuery(ParameterList params) |
SimpleQuery(UriEncoded delegate) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int i) |
java.lang.CharSequence |
decoded()
Returns the decoded text assuming UTF-8 encoding.
|
java.lang.CharSequence |
decoded(java.lang.String charset)
Returns the decoded text, using the given charset to decode the non-ASCII characters.
|
int |
length() |
UriEncoded |
normalized()
Returns a normalized version of this
UriEncoded. |
UriEncoded |
subSequence(int startIndex,
int endIndex) |
java.lang.String |
toString()
Returns the encoded String representation of the query.
|
public SimpleQuery(ParameterList params)
public SimpleQuery(UriEncoded delegate)
public UriEncoded normalized()
UriEncodedUriEncoded. In particular that means any percent-encoded unreserved characters are decoded and
percent-encoding sequences are converted to uppercase.normalized in interface UriEncodedUriEncoded.public java.lang.CharSequence decoded(java.lang.String charset)
throws java.io.UnsupportedEncodingException
UriEncodeddecoded in interface UriEncodedcharset - The name of the charset.java.io.UnsupportedEncodingExceptionpublic java.lang.CharSequence decoded()
UriEncodeddecoded in interface UriEncodedpublic int length()
length in interface java.lang.CharSequencepublic char charAt(int i)
charAt in interface java.lang.CharSequencepublic UriEncoded subSequence(int startIndex, int endIndex)
subSequence in interface java.lang.CharSequencesubSequence in interface UriEncodedpublic java.lang.String toString()
QuerytoString in interface java.lang.CharSequencetoString in interface QuerytoString in interface UriEncodedtoString in class java.lang.ObjectString representing the encoded query.