Example usage for org.springframework.web.context.request RequestAttributes removeAttribute

List of usage examples for org.springframework.web.context.request RequestAttributes removeAttribute

Introduction

In this page you can find the example usage for org.springframework.web.context.request RequestAttributes removeAttribute.

Prototype

void removeAttribute(String name, int scope);

Source Link

Document

Remove the scoped attribute of the given name, if it exists.

Usage

From source file:ru.smsl.webkrona.util.FlashMap.java

/**
 * Removes the flash map from the window or session scope.
 *//*  ww  w.  j  a v  a  2  s.co  m*/
public static void removeFlashMap() {
    RequestAttributes requestAttributes = RequestContextHolder.currentRequestAttributes();
    requestAttributes.removeAttribute(FLASH_MAP_ATTRIBUTE, getFlashMapScope());
}