Package org.apache.wicket.request.mapper.mount

Examples of org.apache.wicket.request.mapper.mount.MountMapper


   *            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


   *            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

   *            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

   *            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

   *            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

   *            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

  @Test
  public void unmount()
  {
    CompoundRequestMapper compound = new CompoundRequestMapper();

    compound.add(new MountMapper(MOUNT_PATH_1, new EmptyRequestHandler()));
    compound.add(new MountMapper(MOUNT_PATH_2, new EmptyRequestHandler()));
    compound.add(new MountMapper(MOUNT_PATH_3, new EmptyRequestHandler()));

    assertEquals(3, compound.size());

    compound.unmount(MOUNT_PATH_2);
    assertEquals(2, compound.size());
View Full Code Here

   *            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.mount.MountMapper

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.