Top Description Fields Constructors Methods
com.jogamp.common.net

public Class UriQueryProps

extends Object
Class Inheritance
Imports
java.net.URISyntaxException, java.util.HashMap, .Iterator, .Map, .Map.Entry

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 to UriQueryProps, and using Uri instead of java.net.URI.

Field Summary

Modifier and TypeField and Description
private static final char
private static final String
private final HashMap<String, String>
private static final String
private final String

Constructor Summary

AccessConstructor and Description
private
UriQueryProps(final char querySeparator)

Method Summary

Modifier and TypeMethod and Description
public final Uri.Encoded
appendQuery(Uri.Encoded baseQuery)

public final Uri
appendQuery(final Uri base)

public static final UriQueryProps
create(final Uri uri, final char
should be either ; or &, ; is encouraged due to troubles of escaping &.
querySeparator
)

public final Map<String, String>
public final char
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASSIGback to summary
private static final char ASSIG
EMPTYback to summary
private static final String EMPTY
propertiesback to summary
private final HashMap<String, String> properties
QMARKback to summary
private static final String QMARK
query_separatorback to summary
private final String query_separator

Constructor Detail

UriQueryPropsback to summary
private UriQueryProps(final char querySeparator)

Method Detail

appendQueryback to summary
public final Uri.Encoded appendQuery(Uri.Encoded baseQuery)
appendQueryback to summary
public final Uri appendQuery(final Uri base) throws URISyntaxException
createback to summary
public static final UriQueryProps create(final Uri uri, final char querySeparator) throws IllegalArgumentException
Parameters
querySeparator:char

should be either ; or &, ; is encouraged due to troubles of escaping &.

Exceptions
IllegalArgumentException:
if querySeparator is illegal, i.e. neither ; nor &
getPropertiesback to summary
public final Map<String, String> getProperties()
getQuerySeparatorback to summary
public final char getQuerySeparator()