/** * The implementation of this (Servlet 3.1+) method calls * {@link MockHttpSession#changeSessionId()} if the session is a mock session. * Otherwise it simply returns the current session id. * @since 4.0.3 */ public String changeSessionId() { Assert.isTrue(this.session != null, "The request does not have a session"); if (this.session instanceof MockHttpSession) { return ((MockHttpSession) this.session).changeSessionId(); } return this.session.getId(); }
/** * The implementation of this (Servlet 3.1+) method calls * {@link MockHttpSession#changeSessionId()} if the session is a mock session. * Otherwise it simply returns the current session id. * @since 4.0.3 */ public String changeSessionId() { Assert.isTrue(this.session != null, "The request does not have a session"); if (this.session instanceof MockHttpSession) { return ((MockHttpSession) this.session).changeSessionId(); } return this.session.getId(); }
/** * The implementation of this (Servlet 3.1+) method calls * {@link MockHttpSession#changeSessionId()} if the session is a mock session. * Otherwise it simply returns the current session id. * @since 4.0.3 */ public String changeSessionId() { Assert.isTrue(this.session != null, "The request does not have a session"); if (this.session instanceof MockHttpSession) { return ((MockHttpSession) this.session).changeSessionId(); } return this.session.getId(); }