|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object egovframework.rfc3.common.util.CommonUtil
public class CommonUtil
Constructor Summary | |
---|---|
CommonUtil()
|
Method Summary | |
---|---|
static java.lang.String |
checkCrossAttackTextArea(java.lang.String str)
text area 타입의 script 태그 막기 |
static java.lang.String |
checkCrossAttackTextField(java.lang.String str)
text field 타입의 태그 막기 |
static java.lang.String |
checkCrossAttackTextFieldMultiPart(java.lang.String str)
text field 타입의 태그 막기 |
static java.lang.String |
checkSQLinjectionAttack(java.lang.String str)
sql injection 공격막기 |
static java.lang.String |
formatTime(long lTime)
long time -> String 변환 |
static java.lang.String |
generateKey()
박 형 민 2011.04.22 현시간 밀리세컨드 |
static java.lang.String |
get7DayAgoDate()
오늘로부터 일주일전 |
static java.lang.String |
getCommonReturnUrl(javax.servlet.http.HttpServletRequest request)
현재 페이지 리턴 페이지 구하기 UTF-8 encoding |
static java.lang.String |
getCookieObject(javax.servlet.http.HttpServletRequest request,
java.lang.String cookieName)
쿠기 이름 가져오기 |
static java.lang.String |
getCurrentDate()
오늘날짜 |
static java.lang.String |
getDate(java.util.Date date,
java.lang.String format)
오늘 날짜를 문자 특정한 포맷으로 변환 |
static java.lang.String |
getExtension(java.lang.String extension)
박 형 민 2011.04.22 확장자 구분 |
static java.lang.String |
getMonthAgoDate()
오늘로 부터 한달전 |
static java.lang.String |
getPrimaryDomain(java.lang.String serverName)
주도메인 찾기 |
static java.lang.String |
getRandomText(int textSize,
int rmSeed)
난수 및 불규칙 생성 |
boolean |
iamServer()
|
static java.util.HashMap |
messageProperties(java.lang.String baseName)
globalMessage가져오기 |
static java.lang.String |
parseHtml(java.lang.String content)
parseHtml |
static java.lang.String |
parseHtmlJeonjuMobile(java.lang.String content)
|
static java.lang.String |
parseHtmlText(java.lang.String content)
br 태그만 남기고 텍스트 가져오기 |
static java.lang.String |
removeTag(java.lang.String s)
removeTag |
static java.lang.Boolean |
Upload_Filter(java.lang.String fileName)
파입 업로드 기본 확장자 검사 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonUtil()
Method Detail |
---|
public boolean iamServer()
public static java.lang.String getCommonReturnUrl(javax.servlet.http.HttpServletRequest request) throws java.io.UnsupportedEncodingException
request
-
java.io.UnsupportedEncodingException
public static java.lang.String getDate(java.util.Date date, java.lang.String format)
date
- format
-
public static java.lang.String getCurrentDate()
public static java.lang.String get7DayAgoDate()
public static java.lang.String getMonthAgoDate()
public static java.lang.String generateKey()
public static java.lang.String getExtension(java.lang.String extension)
extension
-
public static java.lang.String getPrimaryDomain(java.lang.String serverName)
serverName
-
public static java.util.HashMap messageProperties(java.lang.String baseName)
public static java.lang.String getCookieObject(javax.servlet.http.HttpServletRequest request, java.lang.String cookieName)
request
- cookieName
-
public static java.lang.String checkCrossAttackTextArea(java.lang.String str)
s
-
public static java.lang.String checkCrossAttackTextField(java.lang.String str)
s
-
public static java.lang.String checkCrossAttackTextFieldMultiPart(java.lang.String str)
s
-
public static java.lang.String checkSQLinjectionAttack(java.lang.String str)
str
-
public static java.lang.String formatTime(long lTime)
lTime
-
public static java.lang.String parseHtmlText(java.lang.String content)
content
-
public static java.lang.String parseHtmlJeonjuMobile(java.lang.String content)
public static java.lang.String parseHtml(java.lang.String content)
content
-
public static java.lang.String removeTag(java.lang.String s)
s
-
public static java.lang.String getRandomText(int textSize, int rmSeed)
textSize
- rmSeed
-
public static java.lang.Boolean Upload_Filter(java.lang.String fileName)
fileName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |