public Uri getBaseUri() {\r
return mUri;\r
}\r
+\r
+ public String getResultAsString(String targetUrl) {\r
+ String getResult = null;\r
+ try {\r
+ GetMethod get = new GetMethod(targetUrl);\r
+ int status = executeMethod(get);\r
+ if (status == HttpStatus.SC_OK) {\r
+ getResult = get.getResponseBodyAsString();\r
+ }\r
+ } catch (Exception e) {\r
+ Log.e(TAG, "Error while getting requested file: " + targetUrl, e);\r
+ getResult = null;\r
+ }\r
+ return getResult;\r
+ }\r
\r
}\r