ready for rereview
This commit is contained in:
parent
2e532e4e98
commit
ef35c4e7be
|
@ -149,7 +149,7 @@ public class BinaryStorageInterceptor {
|
||||||
newBlobId = myBinaryStorageSvc.newBlobId();
|
newBlobId = myBinaryStorageSvc.newBlobId();
|
||||||
List<DeferredBinaryTarget> deferredBinaryTargets = getOrCreateDeferredBinaryStorageMap(theRequestDetails);
|
List<DeferredBinaryTarget> deferredBinaryTargets = getOrCreateDeferredBinaryStorageMap(theRequestDetails);
|
||||||
DeferredBinaryTarget newDeferredBinaryTarget = new DeferredBinaryTarget(newBlobId, nextTarget, data);
|
DeferredBinaryTarget newDeferredBinaryTarget = new DeferredBinaryTarget(newBlobId, nextTarget, data);
|
||||||
deferredBinaryTargets.add(newDeferredBinaryTarget);
|
deferredBinaryTargets.add(newDeferredBinaryTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
myBinaryAccessProvider.replaceDataWithExtension(nextTarget, newBlobId);
|
myBinaryAccessProvider.replaceDataWithExtension(nextTarget, newBlobId);
|
||||||
|
@ -163,9 +163,9 @@ public class BinaryStorageInterceptor {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private List<DeferredBinaryTarget> getOrCreateDeferredBinaryStorageMap(ServletRequestDetails theRequestDetails) {
|
private List<DeferredBinaryTarget> getOrCreateDeferredBinaryStorageMap(ServletRequestDetails theRequestDetails) {
|
||||||
List<DeferredBinaryTarget> deferredBinaryTargets = (List<DeferredBinaryTarget>) theRequestDetails.getUserData().get(getDeferredListKey());
|
List<DeferredBinaryTarget> deferredBinaryTargets = (List<DeferredBinaryTarget>) theRequestDetails.getUserData().get(getDeferredListKey());
|
||||||
if (deferredBinaryTargets == null) {
|
if (deferredBinaryTargets == null) {
|
||||||
deferredBinaryTargets = new ArrayList<>();
|
deferredBinaryTargets = new ArrayList<>();
|
||||||
theRequestDetails.getUserData().put(getDeferredListKey(), deferredBinaryTargets);
|
theRequestDetails.getUserData().put(getDeferredListKey(), deferredBinaryTargets);
|
||||||
}
|
}
|
||||||
return deferredBinaryTargets;
|
return deferredBinaryTargets;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue