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


          // Intercept the request, but remember the target for later.
          // Invoke Component.continueToOriginalDestination() after successful logon to
          // continue with the target remembered.

          throw new RestartResponseAtInterceptPageException(SignIn.class);
        }

        // okay to proceed
        return true;
      }
View Full Code Here

   */
  private static final long serialVersionUID = 1L;

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

  public void intercept()
  {
    showIntercept = !showIntercept;
    if (showIntercept)
    {
      throw new RestartResponseAtInterceptPageException(B.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

    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

          }

          // Intercept the request, but remember the target for later.
          // Invoke Component.continueToOriginalDestination() after successful logon to
          // continue with the target remembered.
          throw new RestartResponseAtInterceptPageException(SignIn2.class);
        }

        // okay to proceed
        return true;
      }
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 (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

            // okay to proceed
            return true;
          }

          // Force sign in
          throw new RestartResponseAtInterceptPageException(SignIn.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.