org.apache.wicket.markup.html
Interface IPackageResourceGuard

All Known Implementing Classes:
PackageResourceGuard, SecurePackageResourceGuard

public interface IPackageResourceGuard

Guards lazily loaded package resources against unwanted access.

Author:
Eelco Hillenius

Method Summary
 boolean accept(java.lang.Class<?> scope, java.lang.String path)
          Whether the package resource that can be reached using the provided parameters may be accessed.
 

Method Detail

accept

boolean accept(java.lang.Class<?> scope,
               java.lang.String path)
Whether the package resource that can be reached using the provided parameters may be accessed.

Parameters:
scope - This argument will be used to get the class loader for loading the package resource, and to determine what package it is in
path - The path to the resource
Returns:
True if access is permitted, false otherwise


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.