public Collection<ClientSession> getSessions() {
        return routingTable.getClientsRoutes(false);
    }
Returns a list that contains all authenticated client sessions connected to the server.
The list contains sessions of anonymous and non-anonymous users.

@return a list that contains all client sessions connected to the server.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java