mirror of https://github.com/apache/jclouds.git
Merge pull request #1100 from andrewgaul/close-payload
Close Payload directly
This commit is contained in:
commit
ba156b7552
|
@ -84,8 +84,7 @@ public class CloudSigmaErrorHandler implements HttpErrorHandler {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,8 +82,7 @@ public class CloudStackErrorHandler implements HttpErrorHandler {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,8 +77,7 @@ public class DeltacloudErrorHandler implements HttpErrorHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,8 +82,7 @@ public class ElasticStackErrorHandler implements HttpErrorHandler {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,9 +83,7 @@ public class AbiquoErrorHandler implements HttpErrorHandler {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null) {
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
}
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,8 +74,7 @@ public class VPDCErrorHandler implements HttpErrorHandler {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,8 +74,7 @@ public class GleSYSErrorHandler implements HttpErrorHandler {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,8 +70,7 @@ public class SoftLayerErrorHandler implements HttpErrorHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,8 +66,7 @@ public class BoxDotNetErrorHandler implements HttpErrorHandler {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (response.getPayload() != null)
|
Closeables.closeQuietly(response.getPayload());
|
||||||
Closeables.closeQuietly(response.getPayload().getInput());
|
|
||||||
command.setException(exception);
|
command.setException(exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue