|
|
@ -60,19 +60,19 @@ public class HttpUtils
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (ConnectException e)
|
|
|
|
catch (ConnectException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendGet ConnectException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendGet ConnectException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (SocketTimeoutException e)
|
|
|
|
catch (SocketTimeoutException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendGet SocketTimeoutException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendGet SocketTimeoutException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (IOException e)
|
|
|
|
catch (IOException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendGet IOException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendGet IOException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpsUtil.sendGet Exception, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpsUtil.sendGet Exception, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -85,7 +85,7 @@ public class HttpUtils
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用in.close Exception, url=" + url + ",param=" + param, ex.getMessage());
|
|
|
|
log.error("调用in.close Exception, url=" + url + ",param=" + param, ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
@ -129,19 +129,19 @@ public class HttpUtils
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (ConnectException e)
|
|
|
|
catch (ConnectException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendPost ConnectException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendPost ConnectException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (SocketTimeoutException e)
|
|
|
|
catch (SocketTimeoutException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendPost SocketTimeoutException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendPost SocketTimeoutException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (IOException e)
|
|
|
|
catch (IOException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendPost IOException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendPost IOException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpsUtil.sendPost Exception, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpsUtil.sendPost Exception, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -158,7 +158,7 @@ public class HttpUtils
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (IOException ex)
|
|
|
|
catch (IOException ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用in.close Exception, url=" + url + ",param=" + param, ex.getMessage());
|
|
|
|
log.error("调用in.close Exception, url=" + url + ",param=" + param, ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
@ -202,19 +202,19 @@ public class HttpUtils
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (ConnectException e)
|
|
|
|
catch (ConnectException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendSSLPost ConnectException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendSSLPost ConnectException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (SocketTimeoutException e)
|
|
|
|
catch (SocketTimeoutException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendSSLPost SocketTimeoutException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendSSLPost SocketTimeoutException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (IOException e)
|
|
|
|
catch (IOException e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpUtils.sendSSLPost IOException, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpUtils.sendSSLPost IOException, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("调用HttpsUtil.sendSSLPost Exception, url=" + url + ",param=" + param, e.getMessage());
|
|
|
|
log.error("调用HttpsUtil.sendSSLPost Exception, url=" + url + ",param=" + param, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result.toString();
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|