com.jogamp.common.net
Class URIQueryProps

java.lang.Object
  extended by 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
 


Method Summary
 String appendQuery(String baseQuery)
           
 URI appendQuery(URI base)
           
static URIQueryProps create(URI uri, char querySeparator)
           
 Map<String,String> getProperties()
           
 char getQuerySeparator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProperties

public final Map<String,String> getProperties()

getQuerySeparator

public final char getQuerySeparator()

appendQuery

public final String appendQuery(String 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 - if querySeparator is illegal, i.e. neither ; nor &