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

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

Introduction

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

Prototype

String REFERENCE_SESSION

To view the source code for org.springframework.web.context.request RequestAttributes REFERENCE_SESSION.

Click Source Link

Document

Name of the standard reference to the session object: "session".

Usage

From source file:org.jdal.vaadin.VaadinUtils.java

public static HttpSession getSession() {
    RequestAttributes ra = RequestContextHolder.getRequestAttributes();

    return (HttpSession) (ra != null ? ra.resolveReference(RequestAttributes.REFERENCE_SESSION) : null);
}