Package org.apache.wicket.markup.html

Examples of org.apache.wicket.markup.html.IPackageResourceGuard


   *            resource path
   * @return <code>true<code> if resource access is granted
   */
  private boolean accept(Class<?> scope, String path)
  {
    IPackageResourceGuard guard = ThreadContext.getApplication()
      .getResourceSettings()
      .getPackageResourceGuard();

    return guard.accept(scope, path);
  }
View Full Code Here


  public void init(Application application)
  {
    application.getRootRequestMapperAsCompound().add(new TinyMceRequestMapper());

    // Resource Package Guard security settings to fix .htm file problem
    IPackageResourceGuard packageResourceGuard = application.getResourceSettings().getPackageResourceGuard();
    if (packageResourceGuard instanceof SecurePackageResourceGuard)
    {
      SecurePackageResourceGuard guard = (SecurePackageResourceGuard) packageResourceGuard;
      guard.addPattern("+wicket/contrib/tinymce/tiny_mce/**/*.htm");
    }
 
View Full Code Here

  public void init(Application application)
  {
    application.getRootRequestMapperAsCompound().add(new TinyMceRequestMapper());

    // Resource Package Guard security settings to fix .htm file problem
    IPackageResourceGuard packageResourceGuard = application.getResourceSettings().getPackageResourceGuard();
    if (packageResourceGuard instanceof SecurePackageResourceGuard)
    {
      SecurePackageResourceGuard guard = (SecurePackageResourceGuard) packageResourceGuard;
      guard.addPattern("+wicket/contrib/tinymce/tiny_mce/**/*.htm");
    }
 
View Full Code Here

    mountPackage("/backbutton", Page4AjaxBackButton.class);
    mountPackage("/samples/dnd", Page4ClientSideOnly.class);
    mountPackage("/ui", Page4Slider.class);
    super.init();

        IPackageResourceGuard packageResourceGuard = getResourceSettings().getPackageResourceGuard();
        if (packageResourceGuard instanceof SecurePackageResourceGuard)
        {
            SecurePackageResourceGuard secureGuard = (SecurePackageResourceGuard) packageResourceGuard;
            secureGuard.addPattern("+*.map");
        }
View Full Code Here

   *            resource path
   * @return <code>true<code> if resource access is granted
   */
  protected boolean accept(Class<?> scope, String path)
  {
    IPackageResourceGuard guard = Application.get()
      .getResourceSettings()
      .getPackageResourceGuard();

    return guard.accept(scope, path);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.IPackageResourceGuard

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.