Package com.jdroid.javaweb.domain

Examples of com.jdroid.javaweb.domain.Entity


  @Override
  protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
      throws ServletException, IOException {
   
    AbstractSecurityContext<?> securityContext = Application.get().getSecurityContext();
    Entity user = securityContext != null ? securityContext.getUser() : null;
    if (user != null) {
      // Add the user id to the mapped diagnostic context. May be shown using %X{userId} in the layout pattern.
      MDC.put(USER_ID, user.getId());
    }
   
    // Add the session id to the mapped diagnostic context. May be shown using %X{sessionId} in the layout pattern.
    MDC.put(SESSION_ID, request.getSession().getId());
   
View Full Code Here

TOP

Related Classes of com.jdroid.javaweb.domain.Entity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.