Package org.apache.wicket

Examples of org.apache.wicket.RestartResponseAtInterceptPageException


  /**
   * Construct.
   */
  public ProtectedPage()
  {
    throw new RestartResponseAtInterceptPageException(LoginPage.class);
  }
View Full Code Here


          {
            if (block &&
              (componentClass == TargetPage.class || componentClass == HomePage.class))
            {
              block = false;
              throw new RestartResponseAtInterceptPageException(InterceptPage.class);
            }
            return true;
          }
        });
        super.init();
View Full Code Here

   */
  public BookmarkableThrowsInterceptPage()
  {
    if (Application.get().getMetaData(SECURITY) == null)
    {
      throw new RestartResponseAtInterceptPageException(BookmarkableSetSecurityPage.class);
    }
  }
View Full Code Here

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

        if (component instanceof Page) {
            throw new UnauthorizedInstantiationException(component.getClass());
        }

        throw new RestartResponseAtInterceptPageException(Login.class);
    }
View Full Code Here

          // doing that now and redirect
          setMetaData(BROWSER_WAS_POLLED_KEY, Boolean.TRUE);

          WebPage browserInfoPage = newBrowserInfoPage();
          getPageManager().touchPage(browserInfoPage);
          throw new RestartResponseAtInterceptPageException(browserInfoPage);
        }
        // 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
        setMetaData(BROWSER_WAS_POLLED_KEY, null);
View Full Code Here

        private static final long serialVersionUID = 1L;

        @Override
        public void onClick()
        {
          throw new RestartResponseAtInterceptPageException(StatelessPageTest.class);
        }
      });
    }
View Full Code Here

   * NOTE: this method internally throws a restart response exception, so no code after a call to
   * this method will be executed
   */
  public void restartResponseAtSignInPage()
  {
    throw new RestartResponseAtInterceptPageException(getSignInPageClass());
  }
View Full Code Here

        private static final long serialVersionUID = 1L;

        @Override
        public void onClick()
        {
          throw new RestartResponseAtInterceptPageException(StatelessPageTest.class);
        }
      });
    }
View Full Code Here

    if (component instanceof Page)
    {
      if (!AuthenticatedWebSession.get().isSignedIn())
      {
        // Redirect to intercept page to let the user sign in
        throw new RestartResponseAtInterceptPageException(getSignInPageClass());
      }
      else
      {
        onUnauthorizedPage((Page<?>)component);
      }
View Full Code Here

TOP

Related Classes of org.apache.wicket.RestartResponseAtInterceptPageException

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.