Esri Geoportal Server
1.2.9

com.esri.gpt.agp.client
Class AgpUtil

java.lang.Object
  extended by com.esri.gpt.agp.client.AgpUtil

public class AgpUtil
extends Object

Provides a few static utilities.


Constructor Summary
AgpUtil()
          Default constructor.
 
Method Summary
static void appendURLParameter(StringBuilder parameters, String parameter, String value, boolean encodeValue)
          Appends a parameter to a URL buffer.
static String encodeURIComponent(String value)
          URL encodes a URI component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgpUtil

public AgpUtil()
Default constructor.

Method Detail

appendURLParameter

public static void appendURLParameter(StringBuilder parameters,
                                      String parameter,
                                      String value,
                                      boolean encodeValue)
Appends a parameter to a URL buffer.
The value will be trimmed. Empty values will not be appended.

Parameters:
parameters - the buffer
parameter - the parameter name
value - the parameter value
encodeValue - if true the value will be URL encoded

encodeURIComponent

public static String encodeURIComponent(String value)
URL encodes a URI component.

Parameters:
value - the value to encode
Returns:
the encoded value

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.