public class HttpSessionDelegatingSession extends Object implements org.springframework.session.Session, Serializable
Session
implementation simply by delegating call to the underlying container's HttpSession
.Modifier and Type | Method and Description |
---|---|
String |
changeSessionId() |
<T> T |
getAttribute(String attributeName) |
Set<String> |
getAttributeNames() |
java.time.Instant |
getCreationTime() |
String |
getId() |
java.time.Instant |
getLastAccessedTime() |
java.time.Duration |
getMaxInactiveInterval() |
boolean |
isExpired() |
void |
removeAttribute(String attributeName) |
void |
setAttribute(String attributeName,
Object attributeValue) |
void |
setLastAccessedTime(java.time.Instant lastAccessedTime) |
void |
setMaxInactiveInterval(java.time.Duration interval) |
public String getId()
getId
in interface org.springframework.session.Session
public <T> T getAttribute(String attributeName)
getAttribute
in interface org.springframework.session.Session
public Set<String> getAttributeNames()
getAttributeNames
in interface org.springframework.session.Session
public void setAttribute(String attributeName, Object attributeValue)
setAttribute
in interface org.springframework.session.Session
public void removeAttribute(String attributeName)
removeAttribute
in interface org.springframework.session.Session
public java.time.Instant getCreationTime()
getCreationTime
in interface org.springframework.session.Session
public void setLastAccessedTime(java.time.Instant lastAccessedTime)
setLastAccessedTime
in interface org.springframework.session.Session
public java.time.Instant getLastAccessedTime()
getLastAccessedTime
in interface org.springframework.session.Session
public void setMaxInactiveInterval(java.time.Duration interval)
setMaxInactiveInterval
in interface org.springframework.session.Session
public java.time.Duration getMaxInactiveInterval()
getMaxInactiveInterval
in interface org.springframework.session.Session
public boolean isExpired()
isExpired
in interface org.springframework.session.Session
public String changeSessionId()
changeSessionId
in interface org.springframework.session.Session
Copyright © 2019. All rights reserved.