publicstatic HttpClient getInstance() {
try{
if(httpClient == null) {
synchronized(_lock) {
if(httpClient == null) {
httpClient= buildHttpClient();
}
}
}
}catch (Exception e) {
logger.error("httpClient初始化失败!");
}
returnhttpClient;
}
publicstatic HttpClient getInstance() {
try{
if(httpClient == null) {
synchronized(_lock) {
if(httpClient == null) {
httpClient= buildHttpClient();
}
}
}
}catch (Exception e) {
logger.error("httpClient初始化失败!");
}
returnhttpClient;
}