Package play.mvc.Scope

Examples of play.mvc.Scope.Flash


//        }
//        return l;
//    }

    private void keepFlash_() {
        Flash f = Flash.current();
        if (f != null) f.keep();
    }
View Full Code Here


   * this takes place before the flash and session save in the ActionInvoker
   */
  @Override
  public void onActionInvocationResult(Result result) {
//    logDuration("onActionInvocationResult");
    Flash fl = Flash.current();
    if (RenderResultCache.shouldIgnoreCacheInCurrentAndNextReq()) {
      fl.put(RenderResultCache.READ_THRU_FLASH, "yes");
    } else {
      fl.remove(RenderResultCache.READ_THRU_FLASH);
      fl.discard(RenderResultCache.READ_THRU_FLASH);
    }

    // always reset the flag since the thread may be reused for another
    // request processing
    RenderResultCache.setIgnoreCacheInCurrentAndNextReq(false);
View Full Code Here

  /**
   * this takes place before the flash and session save in the ActionInvoker
   */
  @Override
  public void onActionInvocationResult(Result result) {
    Flash fl = Flash.current();
    if (RenderResultCache.shouldIgnoreCacheInCurrentAndNextReq()) {
      fl.put(RenderResultCache.READ_THRU_FLASH, "yes");
    } else {
      fl.remove(RenderResultCache.READ_THRU_FLASH);
      fl.discard(RenderResultCache.READ_THRU_FLASH);
    }

    // always reset the flag since the thread may be reused for another
    // request processing
    RenderResultCache.setIgnoreCacheInCurrentAndNextReq(false);
View Full Code Here

TOP

Related Classes of play.mvc.Scope.Flash

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.