|
|
@ -65,8 +65,7 @@ public class SessionProperties {
|
|
|
|
@PostConstruct
|
|
|
|
@PostConstruct
|
|
|
|
public void checkSessionTimeout() {
|
|
|
|
public void checkSessionTimeout() {
|
|
|
|
if (this.timeout == null && this.serverProperties != null) {
|
|
|
|
if (this.timeout == null && this.serverProperties != null) {
|
|
|
|
Session session = this.serverProperties.getServlet().getSession();
|
|
|
|
this.timeout = this.serverProperties.getServlet().getSession().getTimeout();
|
|
|
|
this.timeout = (session == null ? null : session.getTimeout());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -87,6 +86,10 @@ public class SessionProperties {
|
|
|
|
return this.timeout;
|
|
|
|
return this.timeout;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setTimeout(Duration timeout) {
|
|
|
|
|
|
|
|
this.timeout = timeout;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Servlet getServlet() {
|
|
|
|
public Servlet getServlet() {
|
|
|
|
return this.servlet;
|
|
|
|
return this.servlet;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -95,10 +98,6 @@ public class SessionProperties {
|
|
|
|
this.servlet = servlet;
|
|
|
|
this.servlet = servlet;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTimeout(Duration timeout) {
|
|
|
|
|
|
|
|
this.timeout = timeout;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Servlet-related properties.
|
|
|
|
* Servlet-related properties.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|