package be.selckin.swu; import com.google.common.collect.ImmutableSet; import org.apache.wicket.markup.html.SecurePackageResourceGuard; public class StaticSecurePackageResourceGuard extends SecurePackageResourceGuard { public static final ImmutableSet<String> COMMON_RESOURCES = ImmutableSet.of("gif", "png", "jpg", "css", "js", "ico"); public StaticSecurePackageResourceGuard() { this(COMMON_RESOURCES); } public StaticSecurePackageResourceGuard(Iterable<String> extentions) { for (String extention : extentions) addPattern("+*." + extention); } }