1515
1616package com .spectralogic .ds3client ;
1717
18- import java .io .IOException ;
19- import java .security .SignatureException ;
20-
21-
2218import com .spectralogic .ds3client .commands .*;
2319import com .spectralogic .ds3client .commands .notifications .*;
2420import com .spectralogic .ds3client .models .bulk .Node ;
2521import com .spectralogic .ds3client .networking .ConnectionDetails ;
2622import com .spectralogic .ds3client .networking .NetworkClient ;
2723
24+ import java .io .IOException ;
25+ import java .security .SignatureException ;
26+
2827public class Ds3ClientImpl implements Ds3Client {
2928 private final NetworkClient netClient ;
3029
@@ -86,7 +85,8 @@ public GetObjectResponse getObject(final GetObjectRequest request) throws IOExce
8685 return new GetObjectResponse (
8786 this .netClient .getResponse (request ),
8887 request .getDestinationChannel (),
89- this .netClient .getConnectionDetails ().getBufferSize ()
88+ this .netClient .getConnectionDetails ().getBufferSize (),
89+ request .getObjectName ()
9090 );
9191 }
9292
@@ -176,7 +176,7 @@ public NotificationResponse createObjectCachedNotification(final CreateObjectCac
176176 }
177177
178178 @ Override
179- public NotificationResponse getObjectCachedNotification (GetObjectCachedNotificationRequest request ) throws IOException , SignatureException {
179+ public NotificationResponse getObjectCachedNotification (final GetObjectCachedNotificationRequest request ) throws IOException , SignatureException {
180180 return new NotificationResponse (this .netClient .getResponse (request ));
181181 }
182182
@@ -191,7 +191,7 @@ public NotificationResponse createJobCompletedNotification(final CreateJobComple
191191 }
192192
193193 @ Override
194- public NotificationResponse getJobCompletedNotification (GetJobCompletedNotificationRequest request ) throws IOException , SignatureException {
194+ public NotificationResponse getJobCompletedNotification (final GetJobCompletedNotificationRequest request ) throws IOException , SignatureException {
195195 return new NotificationResponse (this .netClient .getResponse (request ));
196196 }
197197
@@ -201,77 +201,77 @@ public DeleteNotificationResponse deleteJobCompleteNotification(final DeleteJobC
201201 }
202202
203203 @ Override
204- public NotificationResponse createJobCreatedNotification (CreateJobCreatedNotificationRequest request ) throws IOException , SignatureException {
204+ public NotificationResponse createJobCreatedNotification (final CreateJobCreatedNotificationRequest request ) throws IOException , SignatureException {
205205 return new NotificationResponse (this .netClient .getResponse (request ));
206206 }
207207
208208 @ Override
209- public NotificationResponse getJobCreatedNotification (GetJobCreatedNotificationRequest request ) throws IOException , SignatureException {
209+ public NotificationResponse getJobCreatedNotification (final GetJobCreatedNotificationRequest request ) throws IOException , SignatureException {
210210 return new NotificationResponse (this .netClient .getResponse (request ));
211211 }
212212
213213 @ Override
214- public DeleteNotificationResponse deleteJobCreatedNotification (DeleteJobCreatedNotificationRequest request ) throws IOException , SignatureException {
214+ public DeleteNotificationResponse deleteJobCreatedNotification (final DeleteJobCreatedNotificationRequest request ) throws IOException , SignatureException {
215215 return new DeleteNotificationResponse (this .netClient .getResponse (request ));
216216 }
217217
218218 @ Override
219- public NotificationResponse createObjectLostNotification (CreateObjectLostNotificationRequest request ) throws IOException , SignatureException {
219+ public NotificationResponse createObjectLostNotification (final CreateObjectLostNotificationRequest request ) throws IOException , SignatureException {
220220 return new NotificationResponse (this .netClient .getResponse (request ));
221221 }
222222
223223 @ Override
224- public NotificationResponse getObjectLostNotification (GetObjectLostNotificationRequest request ) throws IOException , SignatureException {
224+ public NotificationResponse getObjectLostNotification (final GetObjectLostNotificationRequest request ) throws IOException , SignatureException {
225225 return new NotificationResponse (this .netClient .getResponse (request ));
226226 }
227227
228228 @ Override
229- public DeleteNotificationResponse deleteObjectLostNotification (DeleteObjectLostNotificationRequest request ) throws IOException , SignatureException {
229+ public DeleteNotificationResponse deleteObjectLostNotification (final DeleteObjectLostNotificationRequest request ) throws IOException , SignatureException {
230230 return new DeleteNotificationResponse (this .netClient .getResponse (request ));
231231 }
232232
233233 @ Override
234- public NotificationResponse createObjectPersistedNotification (CreateObjectPersistedNotificationRequest request ) throws IOException , SignatureException {
234+ public NotificationResponse createObjectPersistedNotification (final CreateObjectPersistedNotificationRequest request ) throws IOException , SignatureException {
235235 return new NotificationResponse (this .netClient .getResponse (request ));
236236 }
237237
238238 @ Override
239- public NotificationResponse getObjectPersistedNotification (GetObjectPersistedNotificationRequest request ) throws IOException , SignatureException {
239+ public NotificationResponse getObjectPersistedNotification (final GetObjectPersistedNotificationRequest request ) throws IOException , SignatureException {
240240 return new NotificationResponse (this .netClient .getResponse (request ));
241241 }
242242
243243 @ Override
244- public DeleteNotificationResponse deleteObjectPersistedNotification (DeleteObjectPersistedNotificationRequest request ) throws IOException , SignatureException {
244+ public DeleteNotificationResponse deleteObjectPersistedNotification (final DeleteObjectPersistedNotificationRequest request ) throws IOException , SignatureException {
245245 return new DeleteNotificationResponse (this .netClient .getResponse (request ));
246246 }
247247
248248 @ Override
249- public NotificationResponse createPartitionFailureNotification (CreatePartitionFailureNotificationRequest request ) throws IOException , SignatureException {
249+ public NotificationResponse createPartitionFailureNotification (final CreatePartitionFailureNotificationRequest request ) throws IOException , SignatureException {
250250 return new NotificationResponse (this .netClient .getResponse (request ));
251251 }
252252
253253 @ Override
254- public NotificationResponse getPartitionFailureNotification (GetPartitionFailureNotificationRequest request ) throws IOException , SignatureException {
254+ public NotificationResponse getPartitionFailureNotification (final GetPartitionFailureNotificationRequest request ) throws IOException , SignatureException {
255255 return new NotificationResponse (this .netClient .getResponse (request ));
256256 }
257257
258258 @ Override
259- public DeleteNotificationResponse deletePartitionFailureNotification (DeletePartitionFailureNotificationRequest request ) throws IOException , SignatureException {
259+ public DeleteNotificationResponse deletePartitionFailureNotification (final DeletePartitionFailureNotificationRequest request ) throws IOException , SignatureException {
260260 return new DeleteNotificationResponse (this .netClient .getResponse (request ));
261261 }
262262
263263 @ Override
264- public NotificationResponse createTapeFailureNotification (CreateTapeFailureNotificationRequest request ) throws IOException , SignatureException {
264+ public NotificationResponse createTapeFailureNotification (final CreateTapeFailureNotificationRequest request ) throws IOException , SignatureException {
265265 return new NotificationResponse (this .netClient .getResponse (request ));
266266 }
267267
268268 @ Override
269- public NotificationResponse getTapeFailureNotification (GetTapeFailureNotificationRequest request ) throws IOException , SignatureException {
269+ public NotificationResponse getTapeFailureNotification (final GetTapeFailureNotificationRequest request ) throws IOException , SignatureException {
270270 return new NotificationResponse (this .netClient .getResponse (request ));
271271 }
272272
273273 @ Override
274- public DeleteNotificationResponse deleteTapeFailureNotification (DeleteTapeFailureNotificationRequest request ) throws IOException , SignatureException {
274+ public DeleteNotificationResponse deleteTapeFailureNotification (final DeleteTapeFailureNotificationRequest request ) throws IOException , SignatureException {
275275 return new DeleteNotificationResponse (this .netClient .getResponse (request ));
276276 }
277277
0 commit comments