private Document getFogbugzDocument ( Map < String , String > parameters ) throws IOException , ParserConfigurationException , SAXException { URL uri = new URL ( this . mapToFogbugzUrl ( parameters ) ) ; HttpURLConnection con = ( HttpURLConnection ) uri . openConnection ( ) ; DocumentBuilderFactory dbFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder dBuilder = dbFactory . newDocumentBuilder ( ) ; return dBuilder . parse ( con . getInputStream ( ) ) ; }
Fetches the XML from the Fogbugz API and returns a Document object with the response XML in it so we can use that .