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