summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-05-29 07:45:01 (EDT)
committer Steffen Pingel2013-05-29 07:45:01 (EDT)
commit43043b94bb153e1738b0ca06634259e89ab7a798 (patch)
treec0da32c43da0fa98272c818f99f989617b8203b2
parent21b8dbc313f5e89551129c2ef044ae8058076487 (diff)
downloadorg.eclipse.mylyn.commons-43043b94bb153e1738b0ca06634259e89ab7a798.zip
org.eclipse.mylyn.commons-43043b94bb153e1738b0ca06634259e89ab7a798.tar.gz
org.eclipse.mylyn.commons-43043b94bb153e1738b0ca06634259e89ab7a798.tar.bz2
405650: restore binary backwards compatibilityrefs/changes/32/13332/1
Change-Id: I2ca413eed1d42043225767f0447c29c5b23cbbac Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=405650
-rw-r--r--org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/CommonHttpResponse.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/CommonHttpResponse.java b/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/CommonHttpResponse.java
index 645596f..e13a19e 100644
--- a/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/CommonHttpResponse.java
+++ b/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/CommonHttpResponse.java
@@ -24,6 +24,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.mylyn.commons.core.operations.CancellableOperationMonitorThread;
import org.eclipse.mylyn.commons.core.operations.ICancellableOperation;
import org.eclipse.mylyn.commons.core.operations.IOperationMonitor;
+import org.eclipse.mylyn.commons.core.operations.OperationUtil;
/**
* @author Steffen Pingel
@@ -52,6 +53,19 @@ public class CommonHttpResponse implements ICancellableOperation {
this.monitor = monitor;
}
+ public CommonHttpResponse(HttpRequest request, HttpResponse response, IOperationMonitor monitor) {
+ this(request, response, CancellableOperationMonitorThread.getInstance(), monitor);
+ }
+
+ /**
+ * @deprecated use
+ * {@link CommonHttpResponse#CommonHttpResponse(HttpRequest, HttpResponse, CancellableOperationMonitorThread, IOperationMonitor)
+ */
+ @Deprecated
+ public CommonHttpResponse(HttpRequest request, HttpResponse response) {
+ this(request, response, CancellableOperationMonitorThread.getInstance(), OperationUtil.convert(null));
+ }
+
@Override
public void abort() {
abortStream();
@@ -100,7 +114,7 @@ public class CommonHttpResponse implements ICancellableOperation {
* @deprecated use {@link #getResponseEntityAsStream()} instead
*/
@Deprecated
- public InputStream getResponseEntityAsStream(IOperationMonitor monitor) throws IOException {
+ public InputStream getResponseEntityAsStream(IProgressMonitor monitor) throws IOException {
return getResponseEntityAsStream();
}