Code example for HttpException

Methods: printStackTrace

0
 
        HttpResponse response = null;
        try { 
            response = httpclient.execute(httpget);
        } catch (HttpException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } 
 
        System.out.println("Login form get: " + response.getStatusLine());
        InputStream is = response.getEntity().getContent();
        DataInputStream istream = new DataInputStream(is);
        Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(istream);
 
        is.close();
        return doc;
	} 
     
    private Document POST(String callName, String callPrefix, AlchemyAPI_Params params)
    throws IOException, SAXException, 
           ParserConfigurationException 
	{