Package org.apache.wicket.request.mapper

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


      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

   * @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

   * @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

   * @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

    // 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

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

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

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

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

   * @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

   * @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

   * @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

TOP

Related Classes of org.apache.wicket.request.mapper.PackageMapper

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.