Examples of PackageMapper


Examples of org.apache.wicket.core.request.mapper.PackageMapper

    mountedPath = mountPath;
    mountedSegments = getMountSegments(mountedPath);

    PackageName pkgNameObj = PackageName.forClass(homePage);
    packageName = pkgNameObj.getName();
    mountedMapper = new PackageMapper(packageName, pkgNameObj);
  }
View Full Code Here

Examples of org.apache.wicket.core.request.mapper.PackageMapper

   * @param pageClass
   *            the page class to be mounted
   */
  public final <P extends Page> void mountPackage(final String path, final Class<P> pageClass)
  {
    PackageMapper packageMapper = new PackageMapper(PackageName.forClass(pageClass));
    MountMapper mountMapper = new MountMapper(path, packageMapper);
    mount(mountMapper);
  }
View Full Code Here

Examples of org.apache.wicket.core.request.mapper.PackageMapper

   * @param pageClass
   *            the page class to be mounted
   */
  public final <P extends Page> void mountPackage(final String path, final Class<P> pageClass)
  {
    PackageMapper packageMapper = new PackageMapper(PackageName.forClass(pageClass));
    MountMapper mountMapper = new MountMapper(path, packageMapper);
    mount(mountMapper);
  }
View Full Code Here

Examples of org.apache.wicket.core.request.mapper.PackageMapper

        public void mount(WebApplication application) {
            if (this.clazz != null) {
                mountPage(application);
            }else if (this.packageName != null){
                application.mount(new MountMapper(mountPoint, new PackageMapper(packageName)));
            }
        }
View Full Code Here

Examples of org.apache.wicket.request.mapper.PackageMapper

   * @param pageClass
   *            the page class to be mounted
   */
  public final <P extends Page> void mountPackage(final String path, final Class<P> pageClass)
  {
    PackageMapper packageMapper = new PackageMapper(PackageName.forClass(pageClass));
    MountMapper mountMapper = new MountMapper(path, packageMapper);
    mount(mountMapper);
  }
View Full Code Here

Examples of org.apache.wicket.request.mapper.PackageMapper

      new LocaleFirstMapper(new MountedMapper("/localized", LocalizedPage.class)));

    getRootRequestMapperAsCompound().add(new MountedMapper("secured", HttpsPage.class));

    getRootRequestMapperAsCompound().add(
      new PackageMapper("pMount", PackageName.forClass(PackageMountedPage.class)));

    setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig()));
  }
View Full Code Here

Examples of org.apache.wicket.request.mapper.PackageMapper

   * @param pageClass
   *            the page class to be mounted
   */
  public final <P extends Page> void mountPackage(final String path, final Class<P> pageClass)
  {
    PackageMapper packageMapper = new PackageMapper(PackageName.forClass(pageClass));
    MountMapper mountMapper = new MountMapper(path, packageMapper);
    mount(mountMapper);
  }
View Full Code Here

Examples of org.apache.wicket.request.mapper.PackageMapper

   * @param pageClass
   *            the page class to be mounted
   */
  public final <P extends Page> void mountPackage(final String path, final Class<P> pageClass)
  {
    PackageMapper packageMapper = new PackageMapper(PackageName.forClass(pageClass));
    MountMapper mountMapper = new MountMapper(path, packageMapper);
    mount(mountMapper);
  }
View Full Code Here

Examples of org.apache.wicket.request.mapper.PackageMapper

   * @param pageClass
   *            the page class to be mounted
   */
  public final <P extends Page> void mountPackage(final String path, final Class<P> pageClass)
  {
    PackageMapper packageMapper = new PackageMapper(PackageName.forClass(pageClass));
    MountMapper mountMapper = new MountMapper(path, packageMapper);
    mount(mountMapper);
  }
View Full Code Here

Examples of org.apache.wicket.request.mapper.PackageMapper

    // maybe not the neatest sight, but for package mounting it makes
    // sense to use one of the (important) classes in your package, so
    // that any refactoring (like a package rename) will automatically
    // be applied here.
    getRootRequestMapperAsCompound().add(
      new MountMapper("/my/mounted/package", new PackageMapper(
        PackageName.forClass(Page3.class))));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.