Package er.ajax

Source Code of er.ajax.AjaxRequestHandler

package er.ajax;

import com.webobjects.appserver.WORequest;
import com.webobjects.appserver.WOResponse;
import com.webobjects.appserver._private.WOComponentRequestHandler;

import er.extensions.appserver.ajax.ERXAjaxApplication;

public class AjaxRequestHandler extends WOComponentRequestHandler {
  public static final String AjaxRequestHandlerKey = "ajax";
  private static boolean _useAjaxRequestHandler = false;
 
  public AjaxRequestHandler() {
    AjaxRequestHandler.setUseAjaxRequestHandler(true);
  }

  @Override
  public WOResponse handleRequest(WORequest request) {
    ERXAjaxApplication.enableShouldNotStorePage();
    WOResponse response = super.handleRequest(request);
    return response;
  }
 
  public static void setUseAjaxRequestHandler(boolean useAjaxRequestHandler) {
    _useAjaxRequestHandler = useAjaxRequestHandler;
  }

  public static boolean useAjaxRequestHandler() {
    return _useAjaxRequestHandler;
  }
}
TOP

Related Classes of er.ajax.AjaxRequestHandler

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.