Package org.apache.wicket

Examples of org.apache.wicket.RestartResponseAtInterceptPageException$InterceptData


      // else we need to make a page (see below) or set it hard to a
      // redirect.
      Class accessDeniedPageClass = application.getApplicationSettings()
        .getAccessDeniedPage();

      throw new RestartResponseAtInterceptPageException(accessDeniedPageClass);
    }
    else if (e instanceof PageExpiredException)
    {
      Class pageExpiredErrorPageClass = application.getApplicationSettings()
        .getPageExpiredErrorPage();
View Full Code Here


      // else we need to make a page (see below) or set it hard to a
      // redirect.
      Class accessDeniedPageClass = application.getApplicationSettings()
          .getAccessDeniedPage();

      throw new RestartResponseAtInterceptPageException(accessDeniedPageClass);
    }
    else if (e instanceof PageExpiredException)
    {
      Class pageExpiredErrorPageClass = application.getApplicationSettings()
          .getPageExpiredErrorPage();
View Full Code Here

      if (session.getMetaData(BROWSER_WAS_POLLED_KEY) == null)
      {
        // we haven't done the redirect yet; record that we will be
        // doing that now and redirect
        session.setMetaData(BROWSER_WAS_POLLED_KEY, Boolean.TRUE);
        throw new RestartResponseAtInterceptPageException(new BrowserInfoPage(getRequest().getRelativePathPrefixToContextRoot() + getRequest().getURL()));
      }
      // if we get here, the redirect already has been done; clear
      // the meta data entry; we don't need it any longer is the client
      // info object will be cached too
      session.setMetaData(BROWSER_WAS_POLLED_KEY, (Boolean)null);
View Full Code Here

    public boolean isInstantiationAuthorized(Class componentClass)
    {
      if (MockHomePage.class.equals(componentClass)
          && !((MySession)Session.get()).isLoggedIn())
      {
        throw new RestartResponseAtInterceptPageException(MockLoginPage.class);
      }
      return true;
    }
View Full Code Here

      // else we need to make a page (see below) or set it hard to a
      // redirect.
      Class<? extends Page> accessDeniedPageClass = application.getApplicationSettings()
        .getAccessDeniedPage();

      throw new RestartResponseAtInterceptPageException(accessDeniedPageClass);
    }
    else if (e instanceof PageExpiredException)
    {
      Class<? extends Page> pageExpiredErrorPageClass = application.getApplicationSettings()
        .getPageExpiredErrorPage();
View Full Code Here

    public boolean isInstantiationAuthorized(Class componentClass)
    {
      if (MockHomePage.class.equals(componentClass) &&
        !((MySession)Session.get()).isLoggedIn())
      {
        throw new RestartResponseAtInterceptPageException(MockLoginPage.class);
      }
      return true;
    }
View Full Code Here

      if (session.getMetaData(BROWSER_WAS_POLLED_KEY) == null)
      {
        // we haven't done the redirect yet; record that we will be
        // doing that now and redirect
        session.setMetaData(BROWSER_WAS_POLLED_KEY, Boolean.TRUE);
        throw new RestartResponseAtInterceptPageException(new BrowserInfoPage(getRequest().getRelativePathPrefixToContextRoot() + getRequest().getURL()));
      }
      // if we get here, the redirect already has been done; clear
      // the meta data entry; we don't need it any longer is the client
      // info object will be cached too
      session.setMetaData(BROWSER_WAS_POLLED_KEY, (Boolean)null);
View Full Code Here

          }
        }
        if (isSignedIn()) {
          invalidate();
        }
        throw new RestartResponseAtInterceptPageException(SwfPage.class, pp);
      }
    } catch (RestartResponseAtInterceptPageException e) {
      throw e;
    } catch (Exception e) {
      //no-op, will continue to sign-in page
View Full Code Here

            getSession().clear();
           
            // for the WicketSignInPage to render
            EXCEPTION.set(exceptionModel);

            throw new RestartResponseAtInterceptPageException(getSignInPage());
        }
    }
View Full Code Here

    public boolean isInstantiationAuthorized(Class componentClass)
    {
      if (MockHomePage.class.equals(componentClass)
          && !((MySession)Session.get()).isLoggedIn())
      {
        throw new RestartResponseAtInterceptPageException(MockLoginPage.class);
      }
      return true;
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.RestartResponseAtInterceptPageException$InterceptData

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.