com.aetrion.flickr.test
Class TestInterface

java.lang.Object
  extended by com.aetrion.flickr.test.TestInterface

public class TestInterface
extends java.lang.Object

Interface for testing Flickr connectivity.

Author:
Matt Ray

Field Summary
static java.lang.String METHOD_ECHO
           
static java.lang.String METHOD_LOGIN
           
static java.lang.String METHOD_NULL
           
 
Constructor Summary
TestInterface(java.lang.String apiKey, java.lang.String sharedSecret, Transport transportAPI)
           
 
Method Summary
 java.util.Collection echo(java.util.Collection params)
          A testing method which echo's all paramaters back in the response.
 User login()
          A testing method which checks if the caller is logged in then returns a User object.
 void null_()
          Null test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_ECHO

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

METHOD_LOGIN

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

METHOD_NULL

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

TestInterface

public TestInterface(java.lang.String apiKey,
                     java.lang.String sharedSecret,
                     Transport transportAPI)
Method Detail

echo

public java.util.Collection echo(java.util.Collection params)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException,
                                 FlickrException
A testing method which echo's all paramaters back in the response.

Parameters:
params - The parameters
Returns:
The Collection of echoed elements
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

login

public User login()
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  FlickrException
A testing method which checks if the caller is logged in then returns a User object.

Returns:
The User object
Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException

null_

public void null_()
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  FlickrException
Null test. This method requires authentication with 'read' permission.

Throws:
org.xml.sax.SAXException
java.io.IOException
FlickrException


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