Code example for HttpEntity

Methods: getContent

0
        HttpEntity entity = null;
        try { 
            final HttpResponse response = HttpManager.execute(get);
            entity = response.getEntity();
            CommentsParser commentsParser = new CommentsParser();
            comments = commentsParser.parse(entity.getContent());
        } catch (IOException e) {
            Log.d(TAG, "Failed to read data: " + e.getMessage());
        } 
        return comments;
    } 
}