private String getFileContent(String url) {
byte[] responseBody = null;
try {
HttpClient client = new HttpClient();
if (PropertyReader.getInstance().getPxy_usage().trim().equals(
"true")) {
HostConfiguration hConf = client.getHostConfiguration();
String proxyServer = PropertyReader.getInstance()
.getServerName().trim();
String proxyPort = PropertyReader.getInstance().getPort();
int port = new Integer(proxyPort).intValue();
hConf.setProxy(proxyServer, port);
}
HttpMethod method = new GetMethod(url);
int statusCode = client.executeMethod(method);
if (statusCode != HttpStatus.SC_OK) {
}
responseBody = method.getResponseBody();
method.releaseConnection();
return new String(responseBody, "shift_jis");
} catch (IOException ioe) {
}
// content code end
}