Package org.apache.wicket

Examples of org.apache.wicket.Application


      for (ITargetRespondListener listener : respondListeners)
      {
        listener.onTargetRespond(this);
      }

      final Application app = Application.get();

      page.send(app, Broadcast.BREADTH, this);

      // Determine encoding
      final String encoding = app.getRequestCycleSettings().getResponseRequestEncoding();

      // Set content type based on markup type for page
      response.setContentType("text/xml; charset=" + encoding);

      // Make sure it is not cached by a client
View Full Code Here


  private static Charset getDefaultCharset()
  {
    String charsetName = null;

    Application application = Application.get();
    if (application != null)
    {
      charsetName = application.getRequestCycleSettings().getResponseRequestEncoding();
    }
    if (Strings.isEmpty(charsetName))
    {
      charsetName = "UTF-8";
    }
View Full Code Here

    {
      charsetName = request.getCharacterEncoding();
    }
    if (Strings.isEmpty(charsetName))
    {
      Application application = Application.get();
      if (application != null)
      {
        charsetName = application.getRequestCycleSettings().getResponseRequestEncoding();
      }
    }
    if (Strings.isEmpty(charsetName))
    {
      charsetName = "UTF-8";
View Full Code Here

   * Covariant override for easy getting the current {@link WebApplication} without having to cast
   * it.
   */
  public static WebApplication get()
  {
    Application application = Application.get();

    if (application instanceof WebApplication == false)
    {
      throw new WicketRuntimeException(
        "The application attached to the current thread is not a " +
View Full Code Here

      if (log.isDebugEnabled())
      {
        log.debug("Session unbound: " + sessionId);
      }

      Application application = Application.get(applicationKey);
      if (application == null)
      {
        log.error("Wicket application with name '" + applicationKey + "' not found.");
        return;
      }

      ISessionStore sessionStore = application.getSessionStore();
      if (sessionStore != null)
      {
        for (UnboundListener listener : sessionStore.getUnboundListener())
        {
          listener.sessionUnbound(sessionId);
View Full Code Here

              // ignore this exception.
              log.debug("Class not found by using objects own classloader, trying the IClassResolver");
            }


            Application application = Application.get();
            IApplicationSettings applicationSettings = application.getApplicationSettings();
            IClassResolver classResolver = applicationSettings.getClassResolver();

            Class<?> candidate = null;
            try
            {
View Full Code Here

      {
        // ignore this exception.
        log.debug("Class not found by using objects own classloader, trying the IClassResolver");
      }

      Application application = Application.get();
      IApplicationSettings applicationSettings = application.getApplicationSettings();
      IClassResolver classResolver = applicationSettings.getClassResolver();

      Class<?> candidate = null;
      try
      {
View Full Code Here

    for (ITargetRespondListener listener : respondListeners)
    {
      listener.onTargetRespond(this);
    }

    final Application app = Application.get();

    // Determine encoding
    final String encoding = app.getRequestCycleSettings().getResponseRequestEncoding();

    // Set content type based on markup type for page
    response.setCharacterEncoding(encoding);
    response.setContentType("text/xml; charset=" + encoding);
View Full Code Here

      {
        // ignore this exception.
        log.debug("Class not found by using objects own classloader, trying the IClassResolver");
      }

      Application application = Application.get();
      IApplicationSettings applicationSettings = application.getApplicationSettings();
      IClassResolver classResolver = applicationSettings.getClassResolver();

      Class<?> candidate = null;
      try
      {
View Full Code Here

              // ignore this exception.
              log.debug("Class not found by using objects own classloader, trying the IClassResolver");
            }


            Application application = Application.get();
            IApplicationSettings applicationSettings = application.getApplicationSettings();
            IClassResolver classResolver = applicationSettings.getClassResolver();

            Class<?> candidate = null;
            try
            {
View Full Code Here

TOP

Related Classes of org.apache.wicket.Application

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.