public List < ServerRedirect > tableServers ( int clientId ) { List < ServerRedirect > servers = new ArrayList <> ( ) ; try { Client client = ClientService . getInstance ( ) . getClient ( clientId ) ; servers = tableServers ( client . getProfile ( ) . getId ( ) , client . getActiveServerGroup ( ) ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return servers ; }
Get the server redirects for a given clientId from the database