protected String decode(String value){ if(null != getRequestCharacterEncoding()){ try { return URLDecoder.decode(value, getRequestCharacterEncoding()); } catch (UnsupportedEncodingException e) { return URLDecoder.decode(value); } } else { return URLDecoder.decode(value); } }
protected String decode(String value){ if(null != getRequestCharacterEncoding()){ try { return URLDecoder.decode(value, getRequestCharacterEncoding()); } catch (UnsupportedEncodingException e) { return URLDecoder.decode(value); } } else { return URLDecoder.decode(value); } }
private String encode(String entry) { try { return URLEncoder.encode(entry, getRequestCharacterEncoding()); } catch (UnsupportedEncodingException e) { return URLEncoder.encode(entry); } }
private String encode(String entry) { try { return URLEncoder.encode(entry, getRequestCharacterEncoding()); } catch (UnsupportedEncodingException e) { return URLEncoder.encode(entry); } }