public static synchronized List < Object > getAttributes ( final String name ) { final List < Object > data = new ArrayList <> ( ) ; for ( final String id : SESSIONS . keySet ( ) ) { final HttpSession session = SESSIONS . get ( id ) ; try { final Object o = session . getAttribute ( name ) ; data . add ( o ) ; //CHECKSTYLE:OFF } catch ( final Exception e ) { // no data for this object. } //CHECKSTYLE:ON } return data ; }
Return a list with all session values for a given attribute name .