Package com.webobjects.appserver

Examples of com.webobjects.appserver.WORedirect


        editingContext().revert();
        return null;
    }

    public WOActionResults imageBrowser() {
        WORedirect redirect = new WORedirect(context());
        redirect.setUrl("http://images.google.com/images?q=movie+" + ERXStringUtilities.urlEncode(movie().title()));
        return redirect;
    }
View Full Code Here


        EROpenIDManager.log.debug("Authentication request extension: " + ext);
        authReq.addExtension(ext);
      }

      if (!discovered.isVersion2()) {
        WORedirect redirect = new WORedirect(context);
        String url = authReq.getDestinationUrl(true);
        EROpenIDManager.log.debug("Request URL: " + url);
        redirect.setUrl(url);
        results = redirect;
      }
      else {
        String formRedirectionPageName = ERXProperties.stringForKeyWithDefault("er.openid.formRedirectionPageName", EROFormRedirectionPage.class.getName());
        EROFormRedirectionPage formRedirectionPage = (EROFormRedirectionPage)WOApplication.application().pageWithName(formRedirectionPageName, context);
View Full Code Here

  public WOActionResults defaultAction() {
    return runAction();
  }
   
    private WOActionResults redirect(String url) {
        WORedirect redirect = new WORedirect(context());
        redirect.setUrl(url);
        return redirect;
    }
View Full Code Here

      // realize it isn't there anymore. Unfortunately, this doesn't work
      // in all scenarios.
      if (exception instanceof ERXDatabaseContextDelegate.ObjectNotAvailableException && context != null) {
        String retryKey = context.request().stringFormValueForKey("ERXRetry");
        if (retryKey == null) {
          WORedirect page = new WORedirect(context);
          page.setUrl(context.request().uri() + "?ERXRetry=1");
          return page.generateResponse();
        }
      }
    }
    // We first want to test if we ran out of memory. If so we need to quit
    // ASAP.
View Full Code Here

    public WOActionResults defaultAction() {
        // the reason for this redirect is that the session cookie and the
        // 'remember my login cookie'
        // are in xxx/cgi-bin/WebObjects/x.woa domain
        // if you hit xxx.cgi-bin/WebObjects/x, you do not get them!..
        WORedirect page = (WORedirect) pageWithName("WORedirect");
        page.setUrl(session().context().directActionURLForActionNamed("entrance", null));
        return page;
    }
View Full Code Here

        return page;
    }

    @Override
    public WOActionResults logoutAction() {
      WORedirect redirect = (WORedirect) pageWithName("WORedirect");
      redirect.setUrl(context().directActionURLForActionNamed("entrance", null));
      WOResponse response = redirect.generateResponse();

      WOCookie loginCookie = new WOCookie("BTL", "-");
      loginCookie.setExpires(NSTimestamp.DistantFuture);
      loginCookie.setPath("/");
      response.addCookie(loginCookie);
View Full Code Here

TOP

Related Classes of com.webobjects.appserver.WORedirect

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.