Class URLUtils
- java.lang.Object
-
- com.vmware.vipclient.i18n.messages.api.url.URLUtils
-
public class URLUtils extends Object
Encapsulates some methods related to vIP Server.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBODYstatic StringCACHE_CONTROLstatic StringETAGstatic StringHEADERSstatic StringIF_NONE_MATCH_HEADERstatic StringMAX_AGE_MILLISstatic StringRESPONSE_CODEstatic StringRESPONSE_MSGstatic StringRESPONSE_TIMESTAMP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringappendParamToURL(StringBuilder u, String key, String value)static StringcreateEtagString(Map<String,List<String>> responseHeaders)static LonggetMaxAgeMillis(Map<String,List<String>> responseHeaders)static booleanisStringInListIgnoreCase(List<String> list, String targetStr)Is the target String in list
-
-
-
Field Detail
-
BODY
public static final String BODY
- See Also:
- Constant Field Values
-
HEADERS
public static final String HEADERS
- See Also:
- Constant Field Values
-
RESPONSE_CODE
public static final String RESPONSE_CODE
- See Also:
- Constant Field Values
-
RESPONSE_MSG
public static final String RESPONSE_MSG
- See Also:
- Constant Field Values
-
RESPONSE_TIMESTAMP
public static final String RESPONSE_TIMESTAMP
- See Also:
- Constant Field Values
-
IF_NONE_MATCH_HEADER
public static final String IF_NONE_MATCH_HEADER
- See Also:
- Constant Field Values
-
ETAG
public static final String ETAG
- See Also:
- Constant Field Values
-
CACHE_CONTROL
public static final String CACHE_CONTROL
- See Also:
- Constant Field Values
-
MAX_AGE_MILLIS
public static final String MAX_AGE_MILLIS
- See Also:
- Constant Field Values
-
-
Method Detail
-
appendParamToURL
public static String appendParamToURL(StringBuilder u, String key, String value)
-
isStringInListIgnoreCase
public static boolean isStringInListIgnoreCase(List<String> list, String targetStr)
Is the target String in list- Parameters:
list-containStr-- Returns:
- if contain return true, else return false.
-
-