Package er.extensions.appserver

Examples of er.extensions.appserver.ERXRedirect


   *
   * @param component full page WOComponent instance to redirect to
   */
  public static void redirectTo(WOComponent component) {
    WOContext context = component.context();
        ERXRedirect redirect = (ERXRedirect)component.pageWithName(ERXRedirect.class.getName());
        redirect.setComponent(component);
        redirect.appendToResponse(AjaxUtils.createResponse(context.request(), context), context);
  }
View Full Code Here


 
  @Override
  public WOResponse handlePageRestorationErrorInContext(WOContext context) {
    WOResponse response;
    if (context != null && AjaxUtils.isAjaxRequest(context.request())) {
      ERXRedirect redirect = pageWithName(ERXRedirect.class, context);
      redirect.setDirectActionName("backtrackError");
      response = redirect.generateResponse();
    } else {
      response = pageWithName(SPBacktrackErrorPage.class, context).generateResponse();
    }
    return response;
  }
View Full Code Here

  @Override
  public WOResponse handleException(Exception exception, WOContext context) {
    WOResponse response;
    if (context != null && AjaxUtils.isAjaxRequest(context.request())) {
      ERXRedirect redirect = pageWithName(ERXRedirect.class, context);
      redirect.setDirectActionName("error");
      response = redirect.generateResponse();
    } else {
      SPErrorPage errorPage = pageWithName(SPErrorPage.class, context);
      errorPage.setException(exception);
      response = errorPage.generateResponse();
    }
View Full Code Here

  @Override
  public WOResponse handleSessionRestorationErrorInContext(WOContext context) {
    WOResponse response;
    if (context != null && AjaxUtils.isAjaxRequest(context.request())) {
      ERXRedirect redirect = pageWithName(ERXRedirect.class, context);
      redirect.setDirectActionName("sessionExpired");
      response = redirect.generateResponse();
    } else {
      response = pageWithName(SPSessionExpiredPage.class, context).generateResponse();
    }
    return response;
  }
View Full Code Here

    public WOActionResults adaptorInfoLoginClicked() {
      String url = siteConfig().woAdaptor() + "/WOAdaptorInfo?" + adaptorInfoUsername + "+" + adaptorInfoPassword;
      if (url.startsWith("http://"))
        url = url.replaceFirst("http://", "https://");
      ERXRedirect redirect = pageWithName(ERXRedirect.class);
      redirect.setUrl(url);
      return redirect;
    }
View Full Code Here

  }
 
  @Override
  public void appendToResponse(WOResponse response, WOContext context) {
    if (session().currentPerson() != null) {
      ERXRedirect redirect = pageWithName(ERXRedirect.class);
      redirect.setDirectActionName("default");
      redirect.appendToResponse(response, context);
    }
    else {
      super.appendToResponse(response, context);
    }
  }
View Full Code Here

TOP

Related Classes of er.extensions.appserver.ERXRedirect

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.