Package com.jogamp.common.net
Class UriQueryProps
- java.lang.Object
-
- com.jogamp.common.net.UriQueryProps
-
public class UriQueryProps extends Object
Helper class to process URI's query, handled as properties.The order of the URI segments (any properties) are not preserved.
URI: [scheme:][//authority][path][?query][#fragment] w/ authority: [user-info@]host[:port] Note: 'path' starts w/ fwd slash
Since 2.3.0 renamed from
URIQueryProps
toUriQueryProps
, and usingUri
instead ofURI
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Uri
appendQuery(Uri base)
Uri.Encoded
appendQuery(Uri.Encoded baseQuery)
static UriQueryProps
create(Uri uri, char querySeparator)
Map<String,String>
getProperties()
char
getQuerySeparator()
-
-
-
Method Detail
-
getQuerySeparator
public final char getQuerySeparator()
-
appendQuery
public final Uri.Encoded appendQuery(Uri.Encoded baseQuery)
-
appendQuery
public final Uri appendQuery(Uri base) throws URISyntaxException
- Throws:
URISyntaxException
-
create
public static final UriQueryProps create(Uri uri, char querySeparator) throws IllegalArgumentException
- Parameters:
uri
-querySeparator
- should be either ; or &, ; is encouraged due to troubles of escaping &.- Returns:
- Throws:
IllegalArgumentException
- ifquerySeparator
is illegal, i.e. neither ; nor &
-
-