public static ResourceList < Domain > list ( final BandwidthClient client , final int page , final int size ) { final String resourceUri = client . getUserResourceUri ( BandwidthConstants . DOMAINS_URI_PATH ) ; final ResourceList < Domain > domains = new ResourceList < Domain > ( resourceUri , Domain . class ) ; domains . setClient ( client ) ; domains . initialize ( ) ; return domains ; }
Factory method to list the Domains .