public static HttpServletRequest getHttpServletRequestFromRequestAttributes() {
        try {
            return ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();
        } catch (final Exception e) {
            LOGGER.trace(e.getMessage(), e);
        }
        return null;
    }
public static HttpServletRequest getHttpServletRequestFromRequestAttributes ( ) { try { return ( ( ServletRequestAttributes ) RequestContextHolder . currentRequestAttributes ( ) ) . getRequest ( ) ; } catch ( final Exception e ) { LOGGER . trace ( e . getMessage ( ) , e ) ; } return null ; }
Gets http servlet request from request attributes.

@return the http servlet request from request attributes