public boolean isEnabled ( String path ) { if ( path . startsWith ( "/" ) ) { // start after the leading slash int roomSlashPos = path . indexOf ( ' ' , 1 ) ; if ( roomSlashPos == - 1 ) { // check application level scope path = path . substring ( 1 ) ; } else { // check room level scope path = path . substring ( 1 , roomSlashPos ) ; } } boolean enabled = activeRooms . contains ( path ) ; log . debug ( "Enabled check on path: {} enabled: {}" , path , enabled ) ; return enabled ; }
Returns the enable state of a given path .