Package org.apache.wicket

Examples of org.apache.wicket.IRequestHandler


        // , IBookmarkablePageRequestTarget)
        // since only the test is suffering from this problem

        // this is a bit ugly and i am open to suggestions on how to fix this better. MM
        String pageMapName;
        IRequestHandler currentTarget = cycle.getRequestTarget();
        if (currentTarget instanceof IPageRequestTarget)
        {
          pageMapName = "";
        }
        else
View Full Code Here


    {
      Class<? extends Page> responseClass = cycle.getResponsePageClass();
      if (responseClass != null)
      {
        Session.set(cycle.getSession());
        IRequestHandler target = cycle.getRequestTarget();
        if (target instanceof IPageRequestTarget)
        {
          newLastRenderedPage = ((IPageRequestTarget)target).getPage();
        }
        else if (target instanceof IBookmarkablePageRequestTarget)
View Full Code Here

  /**
   * @see org.apache.wicket.request.IRequestCycleProcessor#processEvents(org.apache.wicket.RequestCycle)
   */
  public void processEvents(RequestCycle requestCycle)
  {
    IRequestHandler target = requestCycle.getRequestTarget();

    if (target instanceof IEventProcessor)
    {
      Application.get().logEventTarget(target);
      ((IEventProcessor)target).processEvents(requestCycle);
View Full Code Here

  /**
   * @see org.apache.wicket.request.IRequestCycleProcessor#respond(org.apache.wicket.RequestCycle)
   */
  public void respond(RequestCycle requestCycle)
  {
    IRequestHandler requestTarget = requestCycle.getRequestTarget();
    if (requestTarget != null)
    {
      Application.get().logResponseTarget(requestTarget);
      requestTarget.respond(requestCycle);
    }
  }
View Full Code Here

    else
    {
      Class<?> pageClass = getPageClass(target);
      if (pageClass != null)
      {
        IRequestHandler redirect = null;
        if (hasSecureAnnotation(pageClass))
        {
          redirect = SwitchProtocolRequestTarget.requireProtocol(Protocol.HTTPS);
        }
        else
View Full Code Here

  {
    // we need to persist the session before a redirect to https so the session lasts across
    // both http and https calls.
    Session.get().bind();

    IRequestHandler target = super.resolve(rc, rp);
    return checkSecure(target);
  }
View Full Code Here

        // , IBookmarkablePageRequestTarget)
        // since only the test is suffering from this problem

        // this is a bit ugly and i am open to suggestions on how to fix this better. MM
        String pageMapName;
        IRequestHandler currentTarget = cycle.getRequestTarget();
        if (currentTarget instanceof IPageRequestTarget)
        {
          pageMapName = "";
        }
        else
View Full Code Here

    {
      Class<? extends Page> responseClass = cycle.getResponsePageClass();
      if (responseClass != null)
      {
        Session.set(cycle.getSession());
        IRequestHandler target = cycle.getRequestTarget();
        if (target instanceof IPageRequestTarget)
        {
          newLastRenderedPage = ((IPageRequestTarget)target).getPage();
        }
        else if (target instanceof IBookmarkablePageRequestTarget)
View Full Code Here

    {
      IRequestCodingStrategy requestCodingStrategy = requestCycle.getProcessor()
        .getRequestCodingStrategy();

      final String path = requestParameters.getPath();
      IRequestHandler target = null;

      // See whether this request points to a bookmarkable page
      if (requestParameters.getBookmarkablePageClass() != null)
      {
        target = resolveBookmarkablePage(requestCycle, requestParameters);
View Full Code Here

TOP

Related Classes of org.apache.wicket.IRequestHandler

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.