Examples of IRequestLogger


Examples of org.apache.wicket.protocol.http.IRequestLogger

      Session.get().internalDetach();
    }

    if (Application.exists())
    {
      IRequestLogger requestLogger = Application.get().getRequestLogger();
      if (requestLogger != null)
        requestLogger.performLogging();
    }
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

          Session.get().getPageManager().commitRequest();
        }

        if (Application.exists())
        {
          IRequestLogger requestLogger = Application.get().getRequestLogger();
          if (requestLogger != null)
          {
            requestLogger.requestTime((System.currentTimeMillis() - requestCycle.getStartTime()));
          }
        }
      }
    });
    return requestCycle;
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

    else if (create)
    {
      httpSession = getHttpSession(request, true);
      id = httpSession.getId();

      IRequestLogger logger = Application.get().getRequestLogger();
      if (logger != null)
      {
        logger.sessionCreated(id);
      }
    }
    return id;
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

    HttpSession httpSession = getHttpSession(request, false);
    if (httpSession != null)
    {
      String attributeName = getSessionAttributePrefix(request) + name;

      IRequestLogger logger = Application.get().getRequestLogger();
      if (logger != null)
      {
        Object value = httpSession.getAttribute(attributeName);
        if (value != null)
        {
          logger.objectRemoved(value);
        }
      }
      httpSession.removeAttribute(attributeName);
    }
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

    // ignore call if the session was marked invalid
    HttpSession httpSession = getHttpSession(request, false);
    if (httpSession != null)
    {
      String attributeName = getSessionAttributePrefix(request) + name;
      IRequestLogger logger = Application.get().getRequestLogger();
      if (logger != null)
      {
        if (httpSession.getAttribute(attributeName) == null)
        {
          logger.objectCreated(value);
        }
        else
        {
          logger.objectUpdated(value);
        }
      }
      httpSession.setAttribute(attributeName, value);
    }
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

      Session.get().internalDetach();
    }

    if (Application.exists())
    {
      IRequestLogger requestLogger = Application.get().getRequestLogger();
      if (requestLogger != null)
        requestLogger.performLogging();
    }
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

      @Override
      public void onEndRequest(RequestCycle cycle)
      {
        if (Application.exists())
        {
          IRequestLogger requestLogger = Application.get().getRequestLogger();
          if (requestLogger != null)
          {
            requestLogger.requestTime((System.currentTimeMillis() - cycle.getStartTime()));
          }
        }
      }
    });
    return requestCycle;
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

      Session.get().internalDetach();
    }

    if (Application.exists())
    {
      IRequestLogger requestLogger = Application.get().getRequestLogger();
      if (requestLogger != null)
        requestLogger.performLogging();
    }
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

      @Override
      public void onEndRequest(RequestCycle cycle)
      {
        if (Application.exists())
        {
          IRequestLogger requestLogger = Application.get().getRequestLogger();
          if (requestLogger != null)
          {
            requestLogger.requestTime((System.currentTimeMillis() - cycle.getStartTime()));
          }
        }
      }
    });
    return requestCycle;
View Full Code Here

Examples of org.apache.wicket.protocol.http.IRequestLogger

      Session.get().internalDetach();
    }

    if (Application.exists())
    {
      IRequestLogger requestLogger = Application.get().getRequestLogger();
      if (requestLogger != null)
        requestLogger.performLogging();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.