Package org.apache.wicket.protocol.http

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


      private static final long serialVersionUID = 1L;

      public Object getObject()
      {
        WebApplication webApplication = (WebApplication)Application.get();
        IRequestLogger requestLogger = webApplication.getRequestLogger();
        if (requestLogger == null)
        {
          return "Enable request recording";
        }
        else
View Full Code Here


  }

  IRequestLogger getRequestLogger()
  {
    WebApplication webApplication = (WebApplication)Application.get();
    final IRequestLogger requestLogger;
    if (webApplication.getRequestLogger() == null)
    {
      // make default one.
      requestLogger = new RequestLogger();
    }
View Full Code Here

  }

  IRequestLogger getRequestLogger()
  {
    WebApplication webApplication = (WebApplication)Application.get();
    final IRequestLogger requestLogger;
    if (webApplication.getRequestLogger() == null)
    {
      // make default one.
      requestLogger = new RequestLogger();
    }
View Full Code Here

    }

    // if we have a request logger, update that now
    try
    {
      IRequestLogger requestLogger = getApplication().getRequestLogger();
      if (requestLogger != null)
      {
        requestLogger.requestTime((System.currentTimeMillis() - startTime));
      }
    }
    catch (RuntimeException re)
    {
      log.error("there was an error in the RequestLogger ending.", re);
View Full Code Here

  }

  IRequestLogger getRequestLogger()
  {
    WebApplication webApplication = (WebApplication)Application.get();
    final IRequestLogger requestLogger;
    if (webApplication.getRequestLogger() == null)
    {
      // make default one.
      requestLogger = new DummyRequestLogger();
    }
View Full Code Here

      @Override
      public String getObject()
      {
        WebApplication webApplication = (WebApplication)Application.get();
        IRequestLogger requestLogger = webApplication.getRequestLogger();
        if (requestLogger == null)
        {
          return "Enable request recording";
        }
        else
View Full Code Here

    }

    // if we have a request logger, update that now
    try
    {
      IRequestLogger requestLogger = getApplication().getRequestLogger();
      if (requestLogger != null)
      {
        requestLogger.requestTime((System.currentTimeMillis() - startTime));
      }
    }
    catch (RuntimeException re)
    {
      log.error("there was an error in the RequestLogger ending.", re);
View Full Code Here

    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

    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

    // 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

TOP

Related Classes of org.apache.wicket.protocol.http.IRequestLogger

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.