コード例 #1
0
 @Override
 public void onStartup(ServletContext servletContext) throws ServletException {
   if (this.session.getTrackingModes() != null) {
     servletContext.setSessionTrackingModes(this.session.getTrackingModes());
   }
   configureSessionCookie(servletContext.getSessionCookieConfig());
 }
コード例 #2
0
 @Override
 public void onStartup(ServletContext servletContext) throws ServletException {
   WebApplicationContext context = getContext();
   ServletRegistration.Dynamic dispatcher =
       servletContext.addServlet("DispatcherServlet", new DispatcherServlet(context));
   dispatcher.setAsyncSupported(true);
   dispatcher.setLoadOnStartup(1);
   dispatcher.addMapping("/secure/*");
   servletContext.addListener(new ContextLoaderListener(context));
   servletContext.setSessionTrackingModes(EnumSet.of(SessionTrackingMode.COOKIE));
 }
 /* (non-Javadoc)
  * @see org.springframework.web.WebApplicationInitializer#onStartup(javax.servlet.ServletContext)
  */
 public final void onStartup(ServletContext servletContext) throws ServletException {
   if (contextLoaderListenerInitializer != null) {
     contextLoaderListenerInitializer.onStartup(servletContext);
   }
   if (enableHttpSessionEventPublisher()) {
     servletContext.addListener(
         "org.springframework.security.web.session.HttpSessionEventPublisher");
   }
   servletContext.setSessionTrackingModes(getSessionTrackingModes());
   insertSpringSecurityFilterChain(servletContext);
   afterSpringSecurityFilterChain(servletContext);
 }
コード例 #4
0
 @Override
 public void setSessionTrackingModes(Set<SessionTrackingMode> set) {
   proxy.setSessionTrackingModes(set);
 }
コード例 #5
0
 @Override
 public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes) {
   sc.setSessionTrackingModes(sessionTrackingModes);
 }
コード例 #6
0
 public void setSessionTrackingModes(Set<SessionTrackingMode> arg0) {
   servletContext.setSessionTrackingModes(arg0);
 }