Package org.apache.wicket

Examples of org.apache.wicket.Application$DefaultExceptionMapperProvider


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


    super.onBeforeRender();

    // Set default for before/after link text
    if (beforeDisabledLink == null)
    {
      final Application app = getApplication();
      beforeDisabledLink = app.getMarkupSettings().getDefaultBeforeDisabledLink();
      afterDisabledLink = app.getMarkupSettings().getDefaultAfterDisabledLink();
    }
  }
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

  {
    super(contentType);

    String path = Packages.absolutePath(clazz, fileName);

    Application app = Application.get();

    // first try default class loading locator to find the resource
    IResourceStream stream = app.getResourceSettings()
      .getResourceStreamLocator()
      .locate(clazz, path);

    if (stream == null)
    {
View Full Code Here

   *
   * @return a mock http request
   */
  private static MockHttpServletRequest createRequest(final WicketTester wicketTester)
  {
    Application application = wicketTester.getApplication();
    HttpSession httpSession = wicketTester.getHttpSession();
    MockHttpServletRequest request = new MockHttpServletRequest(application, httpSession, null);
    request.addParameter(WebRequest.PARAM_AJAX_BASE_URL, ".");
    return request;
  }
View Full Code Here

    IKey key = getRegistryKey();
    IWebSocketConnection connection = connectionRegistry.getConnection(application, sessionId, key);

    if (connection != null && connection.isOpen())
    {
      Application oldApplication = ThreadContext.getApplication();
      Session oldSession = ThreadContext.getSession();
      RequestCycle oldRequestCycle = ThreadContext.getRequestCycle();

      WebSocketResponse webResponse = new WebSocketResponse(connection);
      try
View Full Code Here

   *            the provider of the page class/instance and its parameters
   * @return the html rendered by a page
   */
  public static CharSequence renderPage(final PageProvider pageProvider)
  {
    Application application = Application.get();

    RequestCycle originalRequestCycle = RequestCycle.get();

    BufferedWebResponse tempResponse = new BufferedWebResponse(null);

    RequestCycle tempRequestCycle = application.createRequestCycle(originalRequestCycle.getRequest(), tempResponse);

    try
    {
      ThreadContext.setRequestCycle(tempRequestCycle);
      pageProvider.getPageInstance().renderPage();
View Full Code Here

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

    final Application app = page.getApplication();

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

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

    // Set content type based on markup type for page
    responseObject.setContentType(response, encoding);

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

  public void broadcast(ConnectedMessage connection, IWebSocketPushMessage message)
  {
    Args.notNull(connection, "connection");
    Args.notNull(message, "message");

    Application application = connection.getApplication();
    String sessionId = connection.getSessionId();
    IKey key = connection.getKey();
    IWebSocketConnection wsConnection = registry.getConnection(application, sessionId, key);
    if (wsConnection == null)
    {
View Full Code Here

      if (pageClass != null && IRequestablePage.class.isAssignableFrom(pageClass))
      {
        if (Application.exists())
        {
          Application application = Application.get();

          if (application.getSecuritySettings().getEnforceMounts())
          {
            // we make an exception if the homepage itself was mounted, see WICKET-1898
            if (!pageClass.equals(application.getHomePage()))
            {
              // WICKET-5094 only enforce mount if page is mounted
              if (isPageMounted(pageClass, application))
              {
                return null;
View Full Code Here

TOP

Related Classes of org.apache.wicket.Application$DefaultExceptionMapperProvider

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.