com.aetrion.flickr.urls
Class UrlsInterface

java.lang.Object
  extended by com.aetrion.flickr.urls.UrlsInterface

public class UrlsInterface
extends java.lang.Object

Interface for testing Flickr connectivity.

Author:
Anthony Eden

Field Summary
static java.lang.String METHOD_GET_GROUP
           
static java.lang.String METHOD_GET_USER_PHOTOS
           
static java.lang.String METHOD_GET_USER_PROFILE
           
static java.lang.String METHOD_LOOKUP_GROUP
           
static java.lang.String METHOD_LOOKUP_USER
           
 
Constructor Summary
UrlsInterface(java.lang.String apiKey, java.lang.String sharedSecret, Transport transportAPI)
          Construct a UrlsInterface.
 
Method Summary
 java.lang.String getGroup(java.lang.String groupId)
          Get the group URL for the specified group ID
 java.lang.String getUserPhotos(java.lang.String userId)
          Get the URL for the user's photos.
 java.lang.String getUserProfile(java.lang.String userId)
          Get the URL for the user's profile.
 Group lookupGroup(java.lang.String url)
          Lookup the group for the specified URL.
 java.lang.String lookupUser(java.lang.String url)
          Lookup the username for the specified User URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_GET_GROUP

public static final java.lang.String METHOD_GET_GROUP
See Also:
Constant Field Values

METHOD_GET_USER_PHOTOS

public static final java.lang.String METHOD_GET_USER_PHOTOS
See Also:
Constant Field Values

METHOD_GET_USER_PROFILE

public static final java.lang.String METHOD_GET_USER_PROFILE
See Also:
Constant Field Values

METHOD_LOOKUP_GROUP

public static final java.lang.String METHOD_LOOKUP_GROUP
See Also:
Constant Field Values

METHOD_LOOKUP_USER

public static final java.lang.String METHOD_LOOKUP_USER
See Also:
Constant Field Values
Constructor Detail

UrlsInterface

public UrlsInterface(java.lang.String apiKey,
                     java.lang.String sharedSecret,
                     Transport transportAPI)
Construct a UrlsInterface.

Parameters:
apiKey - The API key
transportAPI - The Transport interface
Method Detail

getGroup

public java.lang.String getGroup(java.lang.String groupId)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException,
                                 FlickrException
Get the group URL for the specified group ID

Parameters:
groupId - The group ID
Returns:
The group URL
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

getUserPhotos

public java.lang.String getUserPhotos(java.lang.String userId)
                               throws java.io.IOException,
                                      org.xml.sax.SAXException,
                                      FlickrException
Get the URL for the user's photos.

Parameters:
userId - The user ID
Returns:
The user photo URL
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

getUserProfile

public java.lang.String getUserProfile(java.lang.String userId)
                                throws java.io.IOException,
                                       org.xml.sax.SAXException,
                                       FlickrException
Get the URL for the user's profile.

Parameters:
userId - The user ID
Returns:
The URL
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

lookupGroup

public Group lookupGroup(java.lang.String url)
                  throws java.io.IOException,
                         org.xml.sax.SAXException,
                         FlickrException
Lookup the group for the specified URL.

Parameters:
url - The url
Returns:
The group
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

lookupUser

public java.lang.String lookupUser(java.lang.String url)
                            throws java.io.IOException,
                                   org.xml.sax.SAXException,
                                   FlickrException
Lookup the username for the specified User URL.

Parameters:
url - The user profile URL
Returns:
The username
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.