@ Override public SortedSet < String > getPDPDomainNamesForPDB ( String pdbId ) throws IOException { SortedSet < String > results = null ; try { URL u = new URL ( server + "getPDPDomainNamesForPDB?pdbId=" + pdbId ) ; logger . info ( "Fetching {}" , u ) ; InputStream response = URLConnectionTools . getInputStream ( u ) ; String xml = JFatCatClient . convertStreamToString ( response ) ; results = XMLUtil . getDomainRangesFromXML ( xml ) ; } catch ( MalformedURLException e ) { logger . error ( "Problem generating PDP request URL for " + pdbId , e ) ; throw new IllegalArgumentException ( "Invalid PDB name: " + pdbId , e ) ; } return results ; }
Get a list of all PDP domains for a given PDB entry