Package org.apache.wicket

Examples of org.apache.wicket.RestartResponseAtInterceptPageException


   private boolean handleException(Class componentClass)
   {
      if (Page.class.isAssignableFrom(componentClass))
      {
         // Redirect to page to let the user sign in
         throw new RestartResponseAtInterceptPageException(loginPage);
      }
      return false;
   }
View Full Code Here


            // okay to proceed
            return true;
          }

          // Force sign in
          throw new RestartResponseAtInterceptPageException(SignIn2.class);
        }
        return true;
      }
    });
  }
View Full Code Here

            // okay to proceed
            return true;
          }

          // Force sign in
          throw new RestartResponseAtInterceptPageException(SignIn.class);
        }
        return true;
      }
    });
  }
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

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

          setMetaData(BROWSER_WAS_POLLED_KEY, Boolean.TRUE);
          Request request = requestCycle.getRequest();

          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

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

            // unauthorized component is a page, but it's not the
            // sign in page
            if (component instanceof Page)
            {
              // Redirect to page to let the user sign in
              throw new RestartResponseAtInterceptPageException(signInPageClass);
            }
            else
            {
              // The component was not a page, so throw exception
              throw new UnauthorizedInstantiationException(component.getClass());
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

   */
  public BookmarkableThrowsInterceptPage()
  {
    if (Application.get().getMetaData(SECURITY) == null)
    {
      throw new RestartResponseAtInterceptPageException(BookmarkableSetSecurityPage.class);
    }
  }
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.