Example usage for org.springframework.web.context.request ServletRequestAttributes getSessionId

List of usage examples for org.springframework.web.context.request ServletRequestAttributes getSessionId

Introduction

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

Prototype

@Override
    public String getSessionId() 

Source Link

Usage

From source file:com.mtgi.analytics.servlet.SpringSessionContext.java

public String getContextSessionId() {
    ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder
            .getRequestAttributes();/*ww w  .java2s  . co  m*/
    return attributes == null ? null : attributes.getSessionId();
}