Package org.apache.wicket.request.target.coding

Examples of org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy


public class OpsuiApp extends WebApplication implements Serializable {

  private static final long serialVersionUID = 1403288657369282259L;

  public OpsuiApp() {
    MixedParamUrlCodingStrategy types = new MixedParamUrlCodingStrategy(
        "types", TypesPage.class, new String[] {});

    MixedParamUrlCodingStrategy typeBrowser = new MixedParamUrlCodingStrategy(
        "type", TypeBrowserPage.class, new String[] { "name", "pageNum" });

    MixedParamUrlCodingStrategy prodBrowser = new MixedParamUrlCodingStrategy(
        "product", ProductBrowserPage.class, new String[] { "id" });

    MixedParamUrlCodingStrategy pcsStatus = new MixedParamUrlCodingStrategy(
        "status", StatusPage.class, new String[] {});

    MixedParamUrlCodingStrategy taskPageMount = new MixedParamUrlCodingStrategy(
        "task", WorkflowTaskViewerPage.class, new String[] { "id" });
    MixedParamUrlCodingStrategy condPageMount = new MixedParamUrlCodingStrategy(
        "condition", WorkflowConditionViewerPage.class, new String[] { "id" });

    MixedParamUrlCodingStrategy workflowPageMount = new MixedParamUrlCodingStrategy(
        "workflow", WorkflowViewerPage.class, new String[] { "id" });

    MixedParamUrlCodingStrategy workflowsPageMount = new MixedParamUrlCodingStrategy(
        "workflows", WorkflowsViewerPage.class, new String[] {});

    MixedParamUrlCodingStrategy workflowInstsPageMount = new MixedParamUrlCodingStrategy(
        "instances", WorkflowInstanceViewerPage.class, new String[] { "status",
            "pageNum" });
   
    MixedParamUrlCodingStrategy configPageMount = new MixedParamUrlCodingStrategy("config",
        ConfigPage.class, new String [] {"tab"});

    mount(pcsStatus);
    mount(types);
    mount(typeBrowser);
View Full Code Here


*
*/
public class WMMonitorApp extends WMMonitorAppBase {

  public WMMonitorApp() {
    MixedParamUrlCodingStrategy taskPageMount = new MixedParamUrlCodingStrategy(
        "task", WorkflowTaskViewerPage.class, new String[] { "id" });
    MixedParamUrlCodingStrategy condPageMount = new MixedParamUrlCodingStrategy(
        "condition", WorkflowConditionViewerPage.class, new String[] { "id" });

    MixedParamUrlCodingStrategy workflowPageMount = new MixedParamUrlCodingStrategy(
        "workflow", WorkflowViewerPage.class, new String[] { "id" });

    MixedParamUrlCodingStrategy eventsPageMount = new MixedParamUrlCodingStrategy(
        "events", WorkflowEventViewerPage.class, new String[] {});

    MixedParamUrlCodingStrategy workflowsPageMount = new MixedParamUrlCodingStrategy(
        "workflows", WorkflowsViewerPage.class, new String[] {});

    MixedParamUrlCodingStrategy workflowInstsPageMount = new MixedParamUrlCodingStrategy(
        "instances", WorkflowInstanceViewerPage.class, new String[] { "status",
            "pageNum" });

    mount(taskPageMount);
    mount(condPageMount);
View Full Code Here

   *
   * @param fmUrlStr
   *          The String URL of the file manager to connect to.
   */
  public FMBrowserApp() {
    MixedParamUrlCodingStrategy types = new MixedParamUrlCodingStrategy(
        "types", TypesPage.class, new String[] {});
    mount(types);

    MixedParamUrlCodingStrategy typeBrowser = new MixedParamUrlCodingStrategy(
        "type", TypeBrowserPage.class, new String[] { "name", "pageNum" });
    mount(typeBrowser);

    MixedParamUrlCodingStrategy prodBrowser = new MixedParamUrlCodingStrategy(
        "product", ProductBrowserPage.class, new String[] { "id" });
    mount(prodBrowser);

  }
View Full Code Here

  @Override
  protected void init()
  {
    mount(new QueryStringUrlCodingStrategy("/statefull", StatefulPage.class));
    mount(new QueryStringUrlCodingStrategy("/query", StatelessPage1.class));
    mount(new MixedParamUrlCodingStrategy("/mixed", StatelessPage2.class, new String[] {
        "param1", "param2" }));
    mount(new IndexedParamUrlCodingStrategy("/indexed", StatelessPage3.class));
    // mount("/public", PackageName.forClass(StatelessApplication.class));
    // mountBookmarkablePage("foo", StatelessPage.class);
  }
View Full Code Here

  {
    super.init();

    mount(new QueryStringUrlCodingStrategy("/statefull", StatefulPage.class));
    mount(new QueryStringUrlCodingStrategy("/query", StatelessPage1.class));
    mount(new MixedParamUrlCodingStrategy("/mixed", StatelessPage2.class, new String[] {
        "param1", "param2" }));
    mount(new IndexedParamUrlCodingStrategy("/indexed", StatelessPage3.class));
    // mount("/public", PackageName.forClass(StatelessApplication.class));
    // mountBookmarkablePage("foo", StatelessPage.class);
  }
View Full Code Here

        "BookmarkablePageRequestTargetUrlCodingStrategy", //
        BookmarkablePageRequestTargetUrlCodingStrategyPage.class, null));
    mount(new IndexedParamUrlCodingStrategy(//
        "IndexedParamUrlCodingStrategy", //
        IndexedParamUrlCodingStrategyPage.class));
    mount(new MixedParamUrlCodingStrategy(//
        "MixedParamUrlCodingStrategy", //
        MixedParamUrlCodingStrategyPage.class, new String[] {}));
    mount(new QueryStringUrlCodingStrategy(//
        "QueryStringUrlCodingStrategy", //
        QueryStringUrlCodingStrategyPage.class));
View Full Code Here

  /**
   *
   */
  public void testUmlautsInQueryParameter()
  {
    application.mount(new MixedParamUrlCodingStrategy("Apath", A.class, new String[] { "file" }));
    testDefault();
  }
View Full Code Here

        mountBookmarkablePage("about", About.class);
        mountBookmarkablePage("imprint", Imprint.class);
        mountBookmarkablePage("offline", OfflinePage.class);

        if (!"offline".equals(cfg.getStage()))
            mount(new MixedParamUrlCodingStrategy("tweets", TweetSearchPage.class, new String[]{}));
        else
            mount(new MixedParamUrlCodingStrategy("tweets", OfflinePage.class, new String[]{}));


        mount(new MixedParamUrlCodingStrategy("login", Login.class, new String[]{}));
        addComponentInstantiationListener(getGuiceInjector());
    }
View Full Code Here

  @Override
  protected void init()
  {
    mount(new QueryStringUrlCodingStrategy("/statefull", StatefulPage.class));
    mount(new QueryStringUrlCodingStrategy("/query", StatelessPage1.class));
    mount(new MixedParamUrlCodingStrategy("/mixed", StatelessPage2.class, new String[] {
        "param1", "param2" }));
    mount(new IndexedParamUrlCodingStrategy("/indexed", StatelessPage3.class));
    // mount("/public", PackageName.forClass(StatelessApplication.class));
    // mountBookmarkablePage("foo", StatelessPage.class);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy

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.