반응형
private Map<String, Object> appendSmsKindBySendMsgLength(Map<String, Object> insertMemoParams, String sendMsg) {
try {
if (sendMsg.getBytes("EUC-KR").length > 80) {
insertMemoParams.put("smsKind", "L");
} else {
insertMemoParams.put("smsKind", "S");
}
} catch (UnsupportedEncodingException e) {
}
return insertMemoParams;
}
@SuppressWarnings( {"unchecked", "unused"})
private Map<String, Object> replaceMemoContents(Map<String, Object> resultMap) {
Map<String, Object> returnValue = (Map<String, Object>)resultMap.get("returnValue");
String memoContent = MapUtils.getString(returnValue, "memoContent");
if (StringUtils.isNotBlank(memoContent)) {
memoContent = StringEscapeUtils.escapeHtml(memoContent);
returnValue.put("memoContent", memoContent);
}
return resultMap;
}
반응형
'etc' 카테고리의 다른 글
그루비 - 다종 언어 프로그래밍 (0) | 2011.01.19 |
---|---|
book: 프로그래머의 길, 멘토에게 묻다. (0) | 2011.01.19 |
ATOM처럼 강하게! (0) | 2011.01.16 |
performance test (0) | 2011.01.06 |
Google Map JavaScript API V3 튜토리얼 (0) | 2011.01.04 |