Class SessionAgent
java.lang.Object
com.aspectran.core.component.session.SessionAgent
Session processing delegate by request.
Created: 2017. 9. 10.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
access()
Called when a session is first accessed by anActivity
.void
complete()
Called when a session is last accessed by anActivity
.<T> T
getAttribute
(String name) long
getId()
long
int
getSession
(boolean create) void
boolean
isNew()
boolean
isValid()
void
removeAttribute
(String name) void
setAttribute
(String name, Object value) void
setMaxInactiveInterval
(int secs)
-
Constructor Details
-
SessionAgent
-
-
Method Details
-
getId
-
getCreationTime
public long getCreationTime() -
getLastAccessedTime
public long getLastAccessedTime() -
getMaxInactiveInterval
public int getMaxInactiveInterval() -
setMaxInactiveInterval
public void setMaxInactiveInterval(int secs) -
getAttributeNames
-
getAttribute
-
setAttribute
-
removeAttribute
-
getSession
-
invalidate
public void invalidate() -
isValid
public boolean isValid() -
isNew
public boolean isNew() -
access
public void access()Called when a session is first accessed by anActivity
. -
complete
public void complete()Called when a session is last accessed by anActivity
.
-