Examples of startExpirationPeriod()


Examples of org.springframework.web.servlet.FlashMap.startExpirationPeriod()

  @Test
  public void retrieveAndUpdateRemoveExpired() throws InterruptedException {
    List<FlashMap> flashMaps = new ArrayList<FlashMap>();
    for (int i=0; i < 5; i++) {
      FlashMap expiredFlashMap = new FlashMap();
      expiredFlashMap.startExpirationPeriod(-1);
      flashMaps.add(expiredFlashMap);
    }
    this.flashMapManager.setFlashMaps(flashMaps);
    this.flashMapManager.retrieveAndUpdate(this.request, this.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.