public class WebEncodingUtils extends Object
Constructor and Description |
---|
WebEncodingUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
beautifyUrl(String x)
Takes "New York" and returns "new-york"
|
static String |
dotdotdot(String x,
int max) |
static CharSequence |
encodeGetParameters(Map<String,?> params) |
static String |
encodeHtml(String x) |
static Map<String,String> |
getHttpRequestParameterMap(javax.servlet.http.HttpServletRequest request) |
static boolean |
isResponseSuccess(HttpURLConnection c) |
static boolean |
isResponseSuccess(int responseCode) |
public static Map<String,String> getHttpRequestParameterMap(javax.servlet.http.HttpServletRequest request)
public static CharSequence encodeGetParameters(Map<String,?> params)
params
- values are either String or String[]public static boolean isResponseSuccess(int responseCode)
public static boolean isResponseSuccess(HttpURLConnection c)