Examples of IRequestMapper


Examples of org.apache.wicket.request.IRequestMapper

   *
   * @return compound instance of the root mapper
   */
  public final ICompoundRequestMapper getRootRequestMapperAsCompound()
  {
    IRequestMapper root = getRootRequestMapper();
    if (!(root instanceof ICompoundRequestMapper))
    {
      root = new CompoundRequestMapper().add(root);
      setRootRequestMapper(root);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

    // so the system mapper can interpret it
    String urlWoJSessionId = Strings.stripJSessionId(url);
    Url resolved = new Url(getRequest().getUrl());
    resolved.resolveRelative(Url.parse(urlWoJSessionId));

    IRequestMapper mapper = getApplication().getRootRequestMapper();
    Request request = getRequest().cloneWithUrl(resolved);
    IRequestHandler handler = mapper.mapRequest(request);

    if (handler != null)
    {
      getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

   *
   * @return compound instance of the root mapper
   */
  public final ICompoundRequestMapper getRootRequestMapperAsCompound()
  {
    IRequestMapper root = getRootRequestMapper();
    if (!(root instanceof ICompoundRequestMapper))
    {
      root = new CompoundRequestMapper().add(root);
      setRootRequestMapper(root);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

    // so the system mapper can interpret it
    String urlWoJSessionId = Strings.stripJSessionId(url);
    Url resolved = new Url(getRequest().getUrl());
    resolved.resolveRelative(Url.parse(urlWoJSessionId));

    IRequestMapper mapper = getApplication().getRootRequestMapper();
    Request request = getRequest().cloneWithUrl(resolved);
    IRequestHandler handler = mapper.mapRequest(request);

    if (handler != null)
    {
      getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

      public String encodeURL(CharSequence url)
      {
        return url + JSESSIONID;
      }
    };
    IRequestMapper mapper = mock(IRequestMapper.class);

    Url bookmarkablePageUrl = Url.parse(BOOKMARKABLE_PAGE_URL);
    when(mapper.mapHandler(argThat(new ExactClassMatcher<BookmarkablePageRequestHandler>(BookmarkablePageRequestHandler.class)))).thenReturn(bookmarkablePageUrl);

    Url resourceUrl = Url.parse(RESOURCE_URL);
    when(mapper.mapHandler(argThat(new ExactClassMatcher<ResourceRequestHandler>(ResourceRequestHandler.class)))).thenReturn(resourceUrl);

    Url resourceReferenceUrl = Url.parse(RES_REF_URL);
    when(mapper.mapHandler(argThat(new ExactClassMatcher<ResourceReferenceRequestHandler>(ResourceReferenceRequestHandler.class)))).thenReturn(resourceReferenceUrl);

    IExceptionMapper exceptionMapper = mock(IExceptionMapper.class);
    RequestCycleContext context = new RequestCycleContext(request, response, mapper, exceptionMapper);

    requestCycle = new RequestCycle(context);
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

    // so the system mapper can interpret it
    String urlWoJSessionId = Strings.stripJSessionId(url);
    Url resolved = new Url(getRequest().getUrl());
    resolved.resolveRelative(Url.parse(urlWoJSessionId));

    IRequestMapper mapper = getApplication().getRootRequestMapper();
    Request request = getRequest().cloneWithUrl(resolved);
    IRequestHandler handler = mapper.mapRequest(request);

    if (handler != null)
    {
      getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

   *
   * @return compound instance of the root mapper
   */
  public final ICompoundRequestMapper getRootRequestMapperAsCompound()
  {
    IRequestMapper root = getRootRequestMapper();
    if (!(root instanceof ICompoundRequestMapper))
    {
      root = new CompoundRequestMapper().add(root);
      setRootRequestMapper(root);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

   *
   * @return compound instance of the root mapper
   */
  public final ICompoundRequestMapper getRootRequestMapperAsCompound()
  {
    IRequestMapper root = getRootRequestMapper();
    if (!(root instanceof ICompoundRequestMapper))
    {
      root = new CompoundRequestMapper().add(root);
      setRootRequestMapper(root);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

    // we transform the passed in url into wicket/page?x-y.IOnChangeListener-path-to-component
    // so the system mapper can interpret it
    Url resolved = new Url(getRequest().getUrl());
    resolved.resolveRelative(Url.parse(url));

    IRequestMapper mapper = getApplication().getRootRequestMapper();
    Request request = getRequest().cloneWithUrl(resolved);
    IRequestHandler handler = mapper.mapRequest(request);

    if (handler != null)
    {
      getRequestCycle().scheduleRequestHandlerAfterCurrent(handler);
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestMapper

   *
   */
  @Test(expected = IllegalArgumentException.class)
  public void construct1()
  {
    IRequestMapper e = new MountedMapper("", MockPage.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.