Class SessionUtil
- java.lang.Object
-
- com.arms.egovframework.javaservice.treeframework.interceptor.SessionUtil
-
public class SessionUtil extends java.lang.Objectsession Util - Spring에서 제공하는 RequestContextHolder 를 이용하여 request 객체를 service까지 전달하지 않고 사용할 수 있게 해줌
-
-
Constructor Summary
Constructors Constructor Description SessionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectgetAttribute(java.lang.String name)attribute 값을 가져 오기 위한 methodstatic java.lang.StringgetSessionId()session idstatic javax.servlet.http.HttpServletRequestgetUrl()static voidremoveAttribute(java.lang.String name)설정한 attribute 삭제static voidsetAttribute(java.lang.String name, java.lang.Object object)attribute 설정 method
-
-
-
Method Detail
-
getAttribute
public static java.lang.Object getAttribute(java.lang.String name) throws java.lang.Exceptionattribute 값을 가져 오기 위한 method- Throws:
java.lang.Exception
-
setAttribute
public static void setAttribute(java.lang.String name, java.lang.Object object) throws java.lang.Exceptionattribute 설정 method- Throws:
java.lang.Exception
-
removeAttribute
public static void removeAttribute(java.lang.String name) throws java.lang.Exception설정한 attribute 삭제- Throws:
java.lang.Exception
-
getSessionId
public static java.lang.String getSessionId() throws java.lang.Exceptionsession id- Throws:
java.lang.Exception
-
getUrl
public static javax.servlet.http.HttpServletRequest getUrl() throws java.lang.Exception- Throws:
java.lang.Exception
-
-