+ * Returns whether this progress means that a request has finished. Use
+ * {@link #isFailed()} to check if the request failed.
+ *
+ * @see #isFailed()
+ * @return <code>true</code> if the request has finished
+ */
+ public boolean isFinished() {
+ return finished;
+ }
+
+ /**
+ * Sets whether the request described by this progress has finished.
+ *
+ * @param finished
+ * <code>true</code> if the request has finished,
+ * <code>false</code> otherwise
+ */
+ void setFinished(boolean finished) {
+ this.finished = finished;
+ }
+
+ /**
+ * Returns whether the request should be fetchable now, in case it was a Put
+ * request.
+ *
+ * @return <code>true</code> if the request should be fetchable now,
+ * <code>false</code> otherwise
+ */
+ public boolean isFetchable() {
+ return fetchable;
+ }
+
+ /**
+ * Sets whether the request should be fetchable now, in case it was a Put
+ * request.
+ *
+ * @param fetchable
+ * <code>true</code> if the request should be fetchable now,
+ * <code>false</code> otherwise
+ */
+ void setFetchable(boolean fetchable) {
+ this.fetchable = fetchable;
+ }
+
+ /**