Package org.apache.wicket.authorization

Examples of org.apache.wicket.authorization.IUnauthorizedResourceRequestListener


   */
  @Test
  public void rejectWithException()
  {
    tester.getApplication().getSecuritySettings().setAuthorizationStrategy(new RejectingAuthorizationStrategy());
    tester.getApplication().getSecuritySettings().setUnauthorizedResourceRequestListener(new IUnauthorizedResourceRequestListener()
    {
      @Override
      public void onUnauthorizedRequest(IResource resource, PageParameters parameters)
      {
        throw new RuntimeException("Not authorized to request: " + resource);
View Full Code Here

TOP

Related Classes of org.apache.wicket.authorization.IUnauthorizedResourceRequestListener

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.