public final class URLUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeURL(String url,
Map<String,List<String>> params,
String characterResponseEncoding)
Encodes a URL (with or without an existing query string) such that the value in the params map are added to them.
|
static long |
getLastModified(URL url) |
static long |
getLastModified(URLConnection connection) |
static String |
jsEncodeURL(String url,
String charset)
Takes a URL that is not escaped for javascript and escapes it
|
public static long getLastModified(URL url) throws IOException
IOExceptionpublic static long getLastModified(URLConnection connection) throws IOException
IOExceptionpublic static String jsEncodeURL(String url, String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String encodeURL(String url, Map<String,List<String>> params, String characterResponseEncoding)
url - the base URLparams - the map of parameters to add, or nullcharacterResponseEncoding - the character response encodingUnsupportedOperationException - if the encoding is not supported.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.