Examples of urlFor()


Examples of org.apache.abdera.protocol.server.TargetBuilder.urlFor()

    public String urlFor(
            RequestContext request,
            Object key,
            Object param) {
        TargetBuilder tm = getTargetBuilder(request);
        return tm != null ? tm.urlFor(request, key, param) : null;
    }

    protected Resolver<Subject> getSubjectResolver(RequestContext request) {
        return new SimpleSubjectResolver();
    }
View Full Code Here

Examples of org.apache.abdera.protocol.server.impl.RouteManager.urlFor()

    RequestContext request = createMock(RequestContext.class);
    expect(request.getContextPath()).andReturn("/app");
    replay(request);

    assertEquals(expected, manager.urlFor(request, "entry", context));
  }
 
  @Test
  public void testStaticResolve() throws Exception {
    RouteManager manager = new RouteManager();
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

    // the page will render just <script> element with url to the template
    // this will register it in the application's ResourceReferenceRegistry
    Page page = tester.startPage(new TemplateResourceReferencePage());

    // make a separate request to the template resource
    CharSequence urlForTemplate = page.urlFor(new PackageResourceReference(
      TextTemplateResourceReferenceTest.class, TEMPLATE_NAME), null);
    tester.executeUrl(urlForTemplate.toString());
    tester.assertContains("TMPL_START\\|" + EXPECTED_VALUE + "\\|TMPL_END");
  }
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

  {
    // Get the page we want a url from:
    Page page = requestTarget.getPage();

    // A url to a page is the IRedirectListener interface:
    CharSequence urlRedirect = page.urlFor(IRedirectListener.INTERFACE);

    // Touch the page once because it could be that it did go from stateless
    // to stateful or it was a internally made page where just a url must
    // be made for (frames)
    Session.get().touch(page);
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

  {
    // Get the page we want a url from:
    Page page = requestTarget.getPage();

    // A url to a page is the IRedirectListener interface:
    CharSequence urlRedirect = page.urlFor(IRedirectListener.INTERFACE);

    // Touch the page once because it could be that it did go from stateless
    // to stateful or it was a internally made page where just a url must
    // be made for (frames)
    Session.get().touch(page);
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

    // the page will render just <script> element with url to the template
    // this will register it in the application's ResourceReferenceRegistry
    Page page = tester.startPage(new TemplateResourceReferencePage());

    // make a separate request to the template resource
    CharSequence urlForTemplate = page.urlFor(new PackageResourceReference(
      TextTemplateResourceReferenceTest.class, TEMPLATE_NAME), null);
    tester.executeUrl(urlForTemplate.toString());
    tester.assertContains("TMPL_START\\|" + EXPECTED_VALUE + "\\|TMPL_END");
  }
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

  {
    // Get the page we want a url from:
    Page page = requestTarget.getPage();

    // A url to a page is the IRedirectListener interface:
    CharSequence urlRedirect = page.urlFor(IRedirectListener.INTERFACE);

    // Touch the page once because it could be that it did go from stateless
    // to stateful or it was a internally made page where just a url must
    // be made for (frames)
    Session.get().touch(page);
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

  {
    // Get the page we want a url from:
    Page page = requestTarget.getPage();

    // A url to a page is the IRedirectListener interface:
    CharSequence urlRedirect = page.urlFor(IRedirectListener.INTERFACE);

    // Touch the page once because it could be that it did go from stateless
    // to statefull or it was a internally made page where just a url must
    // be made for (frames)
    Session.get().touch(page);
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

  {
    // Get the page we want a url from:
    Page page = requestTarget.getPage();

    // A url to a page is the IRedirectListener interface:
    CharSequence urlRedirect = page.urlFor(IRedirectListener.INTERFACE);

    // Touch the page once because it could be that it did go from stateless
    // to stateful or it was a internally made page where just a url must
    // be made for (frames)
    Session.get().touch(page);
View Full Code Here

Examples of org.apache.wicket.Page.urlFor()

  {
    // Get the page we want a url from:
    Page page = requestTarget.getPage();

    // A url to a page is the IRedirectListener interface:
    CharSequence urlRedirect = page.urlFor(IRedirectListener.INTERFACE);

    // Touch the page once because it could be that it did go from stateless
    // to stateful or it was a internally made page where just a url must
    // be made for (frames)
    Session.get().touch(page);
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.