public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARACTER_SET |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static List<? extends org.apache.http.NameValuePair> |
urlEncodeMultipleParams(String params,
boolean urlEncode) |
static String |
urlEncodeQueryParams(String params,
boolean urlEncode) |
static int |
validatePortNumber(String portStringValue)
Checks if a given value represents a valid port number and returns an int value representing that port number otherwise throws an exception when an invalid port value is provided.
|
public static final String DEFAULT_CHARACTER_SET
public static List<? extends org.apache.http.NameValuePair> urlEncodeMultipleParams(String params, boolean urlEncode) throws UrlEncodeException
UrlEncodeExceptionpublic static String urlEncodeQueryParams(String params, boolean urlEncode) throws UrlEncodeException
UrlEncodeExceptionpublic static int validatePortNumber(String portStringValue)
RequestConfigBuilder.buildRequestConfig() , the value '-1' indicates the scheme default port.portStringValue - String value representing the port number;Copyright © 2020. All rights reserved.