3838import com .flickr4java .flickr .tags .TagsInterface ;
3939import com .flickr4java .flickr .test .TestInterface ;
4040import com .flickr4java .flickr .uploader .Uploader ;
41+ import com .flickr4java .flickr .uploader .UploaderResponse ;
4142import com .flickr4java .flickr .urls .UrlsInterface ;
4243
4344import java .util .Set ;
5657 * @author Anthony Eden
5758 * @version $Id: Flickr.java,v 1.45 2009/06/23 21:51:25 x-mago Exp $
5859 */
59- public class Flickr {
60+ public class Flickr implements IFlickr {
6061
6162 /**
6263 * The default endpoint host.
@@ -291,6 +292,7 @@ public Flickr(String apiKey, String sharedSecret, Transport transport) {
291292 *
292293 * @return The API key
293294 */
295+ @ Override
294296 public String getApiKey () {
295297 return apiKey ;
296298 }
@@ -301,13 +303,15 @@ public String getApiKey() {
301303 * @param apiKey
302304 * The API key which cannot be null
303305 */
306+ @ Override
304307 public void setApiKey (String apiKey ) {
305308 if (apiKey == null ) {
306309 throw new IllegalArgumentException ("API key must not be null" );
307310 }
308311 this .apiKey = apiKey ;
309312 }
310313
314+ @ Override
311315 public void setAuth (Auth auth ) {
312316 this .auth = auth ;
313317 }
@@ -317,6 +321,7 @@ public void setAuth(Auth auth) {
317321 *
318322 * @return The Auth-object
319323 */
324+ @ Override
320325 public Auth getAuth () {
321326 return auth ;
322327 }
@@ -326,6 +331,7 @@ public Auth getAuth() {
326331 *
327332 * @return The Shared-Secret
328333 */
334+ @ Override
329335 public String getSharedSecret () {
330336 return sharedSecret ;
331337 }
@@ -336,6 +342,7 @@ public String getSharedSecret() {
336342 * @param sharedSecret
337343 * The Shared-Secret which cannot be null
338344 */
345+ @ Override
339346 public void setSharedSecret (String sharedSecret ) {
340347 if (sharedSecret == null ) {
341348 throw new IllegalArgumentException ("Shared-Secret must not be null" );
@@ -348,6 +355,7 @@ public void setSharedSecret(String sharedSecret) {
348355 *
349356 * @return The Tranport interface
350357 */
358+ @ Override
351359 public Transport getTransport () {
352360 return transport ;
353361 }
@@ -357,6 +365,7 @@ public Transport getTransport() {
357365 *
358366 * @param transport
359367 */
368+ @ Override
360369 public void setTransport (Transport transport ) {
361370 if (transport == null ) {
362371 throw new IllegalArgumentException ("Transport must not be null" );
@@ -369,6 +378,7 @@ public void setTransport(Transport transport) {
369378 *
370379 * @return The AuthInterface
371380 */
381+ @ Override
372382 public AuthInterface getAuthInterface () {
373383 if (authInterface == null ) {
374384 authInterface = new AuthInterface (apiKey , sharedSecret , transport );
@@ -381,55 +391,63 @@ public AuthInterface getAuthInterface() {
381391 *
382392 * @return The ActivityInterface
383393 */
394+ @ Override
384395 public ActivityInterface getActivityInterface () {
385396 if (activityInterface == null ) {
386397 activityInterface = new ActivityInterface (apiKey , sharedSecret , transport );
387398 }
388399 return activityInterface ;
389400 }
390401
402+ @ Override
391403 public synchronized BlogsInterface getBlogsInterface () {
392404 if (blogsInterface == null ) {
393405 blogsInterface = new BlogsInterface (apiKey , sharedSecret , transport );
394406 }
395407 return blogsInterface ;
396408 }
397409
410+ @ Override
398411 public CommentsInterface getCommentsInterface () {
399412 if (commentsInterface == null ) {
400413 commentsInterface = new CommentsInterface (apiKey , sharedSecret , transport );
401414 }
402415 return commentsInterface ;
403416 }
404417
418+ @ Override
405419 public CommonsInterface getCommonsInterface () {
406420 if (commonsInterface == null ) {
407421 commonsInterface = new CommonsInterface (apiKey , sharedSecret , transport );
408422 }
409423 return commonsInterface ;
410424 }
411425
426+ @ Override
412427 public ContactsInterface getContactsInterface () {
413428 if (contactsInterface == null ) {
414429 contactsInterface = new ContactsInterface (apiKey , sharedSecret , transport );
415430 }
416431 return contactsInterface ;
417432 }
418433
434+ @ Override
419435 public FavoritesInterface getFavoritesInterface () {
420436 if (favoritesInterface == null ) {
421437 favoritesInterface = new FavoritesInterface (apiKey , sharedSecret , transport );
422438 }
423439 return favoritesInterface ;
424440 }
425441
442+ @ Override
426443 public GeoInterface getGeoInterface () {
427444 if (geoInterface == null ) {
428445 geoInterface = new GeoInterface (apiKey , sharedSecret , transport );
429446 }
430447 return geoInterface ;
431448 }
432449
450+ @ Override
433451 public GroupsInterface getGroupsInterface () {
434452 if (groupsInterface == null ) {
435453 groupsInterface = new GroupsInterface (apiKey , sharedSecret , transport );
@@ -440,104 +458,119 @@ public GroupsInterface getGroupsInterface() {
440458 /**
441459 * @return the interface to the flickr.interestingness methods
442460 */
461+ @ Override
443462 public synchronized InterestingnessInterface getInterestingnessInterface () {
444463 if (interestingnessInterface == null ) {
445464 interestingnessInterface = new InterestingnessInterface (apiKey , sharedSecret , transport );
446465 }
447466 return interestingnessInterface ;
448467 }
449468
469+ @ Override
450470 public LicensesInterface getLicensesInterface () {
451471 if (licensesInterface == null ) {
452472 licensesInterface = new LicensesInterface (apiKey , sharedSecret , transport );
453473 }
454474 return licensesInterface ;
455475 }
456476
477+ @ Override
457478 public MachinetagsInterface getMachinetagsInterface () {
458479 if (machinetagsInterface == null ) {
459480 machinetagsInterface = new MachinetagsInterface (apiKey , sharedSecret , transport );
460481 }
461482 return machinetagsInterface ;
462483 }
463484
485+ @ Override
464486 public MembersInterface getMembersInterface () {
465487 if (membersInterface == null ) {
466488 membersInterface = new MembersInterface (apiKey , sharedSecret , transport );
467489 }
468490 return membersInterface ;
469491 }
470492
493+ @ Override
471494 public NotesInterface getNotesInterface () {
472495 if (notesInterface == null ) {
473496 notesInterface = new NotesInterface (apiKey , sharedSecret , transport );
474497 }
475498 return notesInterface ;
476499 }
477500
501+ @ Override
478502 public PandaInterface getPandaInterface () {
479503 if (pandaInterface == null ) {
480504 pandaInterface = new PandaInterface (apiKey , sharedSecret , transport );
481505 }
482506 return pandaInterface ;
483507 }
484508
509+ @ Override
485510 public PoolsInterface getPoolsInterface () {
486511 if (poolsInterface == null ) {
487512 poolsInterface = new PoolsInterface (apiKey , sharedSecret , transport );
488513 }
489514 return poolsInterface ;
490515 }
491516
517+ @ Override
492518 public PeopleInterface getPeopleInterface () {
493519 if (peopleInterface == null ) {
494520 peopleInterface = new PeopleInterface (apiKey , sharedSecret , transport );
495521 }
496522 return peopleInterface ;
497523 }
498524
525+ @ Override
499526 public PhotosInterface getPhotosInterface () {
500527 if (photosInterface == null ) {
501528 photosInterface = new PhotosInterface (apiKey , sharedSecret , transport );
502529 }
503530 return photosInterface ;
504531 }
505532
533+ @ Override
506534 public PhotosetsCommentsInterface getPhotosetsCommentsInterface () {
507535 if (photosetsCommentsInterface == null ) {
508536 photosetsCommentsInterface = new PhotosetsCommentsInterface (apiKey , sharedSecret , transport );
509537 }
510538 return photosetsCommentsInterface ;
511539 }
512540
541+ @ Override
513542 public PhotosetsInterface getPhotosetsInterface () {
514543 if (photosetsInterface == null ) {
515544 photosetsInterface = new PhotosetsInterface (apiKey , sharedSecret , transport );
516545 }
517546 return photosetsInterface ;
518547 }
519548
549+ @ Override
520550 public CollectionsInterface getCollectionsInterface () {
521551 if (collectionsInterface == null ) {
522552 collectionsInterface = new CollectionsInterface (apiKey , sharedSecret , transport );
523553 }
524554 return collectionsInterface ;
525555 }
526556
557+ @ Override
527558 public PlacesInterface getPlacesInterface () {
528559 if (placesInterface == null ) {
529560 placesInterface = new PlacesInterface (apiKey , sharedSecret , transport );
530561 }
531562 return placesInterface ;
532563 }
533564
565+ @ Override
534566 public PrefsInterface getPrefsInterface () {
535567 if (prefsInterface == null ) {
536568 prefsInterface = new PrefsInterface (apiKey , sharedSecret , transport );
537569 }
538570 return prefsInterface ;
539571 }
540572
573+ @ Override
541574 public ReflectionInterface getReflectionInterface () {
542575 if (reflectionInterface == null ) {
543576 reflectionInterface = new ReflectionInterface (apiKey , sharedSecret , transport );
@@ -550,62 +583,71 @@ public ReflectionInterface getReflectionInterface() {
550583 *
551584 * @return The TagsInterface
552585 */
586+ @ Override
553587 public TagsInterface getTagsInterface () {
554588 if (tagsInterface == null ) {
555589 tagsInterface = new TagsInterface (apiKey , sharedSecret , transport );
556590 }
557591 return tagsInterface ;
558592 }
559593
594+ @ Override
560595 public TestInterface getTestInterface () {
561596 if (testInterface == null ) {
562597 testInterface = new TestInterface (apiKey , sharedSecret , transport );
563598 }
564599 return testInterface ;
565600 }
566601
602+ @ Override
567603 public TransformInterface getTransformInterface () {
568604 if (transformInterface == null ) {
569605 transformInterface = new TransformInterface (apiKey , sharedSecret , transport );
570606 }
571607 return transformInterface ;
572608 }
573609
610+ @ Override
574611 public UploadInterface getUploadInterface () {
575612 if (uploadInterface == null ) {
576613 uploadInterface = new UploadInterface (apiKey , sharedSecret , transport );
577614 }
578615 return uploadInterface ;
579616 }
580617
618+ @ Override
581619 public Uploader getUploader () {
582620 if (uploader == null ) {
583621 uploader = new Uploader (apiKey , sharedSecret );
584622 }
585623 return uploader ;
586624 }
587625
626+ @ Override
588627 public UrlsInterface getUrlsInterface () {
589628 if (urlsInterface == null ) {
590629 urlsInterface = new UrlsInterface (apiKey , sharedSecret , transport );
591630 }
592631 return urlsInterface ;
593632 }
594633
634+ @ Override
595635 public GalleriesInterface getGalleriesInterface () {
596636 if (galleriesInterface == null ) {
597637 galleriesInterface = new GalleriesInterface (apiKey , sharedSecret , transport );
598638 }
599639 return galleriesInterface ;
600640 }
601641
642+ @ Override
602643 public StatsInterface getStatsInterface () {
603644 if (statsInterface == null ) {
604645 statsInterface = new StatsInterface (apiKey , sharedSecret , transport );
605646 }
606647 return statsInterface ;
607648 }
608649
650+ @ Override
609651 public CamerasInterface getCamerasInterface () {
610652 if (cameraInterface == null ) {
611653 cameraInterface = new CamerasInterface (apiKey , sharedSecret , transport );
@@ -618,6 +660,7 @@ public CamerasInterface getCamerasInterface() {
618660 *
619661 * @return The SuggestionsInterface
620662 */
663+ @ Override
621664 public SuggestionsInterface getSuggestionsInterface () {
622665 if (suggestionsInterface == null ) {
623666 suggestionsInterface = new SuggestionsInterface (apiKey , sharedSecret , transport );
@@ -631,6 +674,7 @@ public SuggestionsInterface getSuggestionsInterface() {
631674 * @return The GroupDiscussInterface
632675 */
633676
677+ @ Override
634678 public GroupDiscussInterface getDiscussionInterface () {
635679 if (discussionInterface == null ) {
636680 discussionInterface = new GroupDiscussInterface (apiKey , sharedSecret , transport );
0 commit comments