Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOContext.response()


  public void savePage(WOComponent page) {
    WOContext context = context();
    if (ERXAjaxApplication.shouldNotStorePage(context)) {
      if (logger.isDebugEnabled()) logger.debug("Considering pageReplacementCache for " + context.request().uri() + " with contextID " + context.contextID());
      WORequest request = context.request();
      WOResponse response = context.response();
      String pageCacheKey = null;
      if (response != null) {
        pageCacheKey = response.headerForKey(ERXAjaxSession.PAGE_REPLACEMENT_CACHE_LOOKUP_KEY);
      }
      if (pageCacheKey == null && request != null) {
View Full Code Here


   * @return the new ERXResponse to write to
   */
  public static ERXResponse pushPartial(String key) {
    Context context = currentContext();
    WOContext wocontext = ERXWOContext.currentContext();
    context.stack.push((ERXResponse) wocontext.response());
    ERXResponse response = context.partials.get(key);
    if (response == null) {
      response = new ERXResponse(wocontext);
      context.partials.put(key, response);
    }
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.