com.aetrion.flickr.util
Class UrlUtilities

java.lang.Object
  extended by com.aetrion.flickr.util.UrlUtilities

public class UrlUtilities
extends java.lang.Object

Author:
Anthony Eden

Field Summary
static java.lang.String UTF8
           
 
Constructor Summary
UrlUtilities()
           
 
Method Summary
static java.net.URL buildPostUrl(java.lang.String host, int port, java.lang.String path)
           
static java.net.URL buildUrl(java.lang.String host, int port, java.lang.String path, java.util.List parameters)
          Build a request URL.
static java.lang.String createBuddyIconUrl(int iconFarm, int iconServer, java.lang.String id)
          Construct the BuddyIconUrl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTF8

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

UrlUtilities

public UrlUtilities()
Method Detail

buildUrl

public static java.net.URL buildUrl(java.lang.String host,
                                    int port,
                                    java.lang.String path,
                                    java.util.List parameters)
                             throws java.net.MalformedURLException
Build a request URL.

Parameters:
host - The host
port - The port
path - The path
parameters - The parameters
Returns:
The URL
Throws:
java.net.MalformedURLException

buildPostUrl

public static java.net.URL buildPostUrl(java.lang.String host,
                                        int port,
                                        java.lang.String path)
                                 throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

createBuddyIconUrl

public static java.lang.String createBuddyIconUrl(int iconFarm,
                                                  int iconServer,
                                                  java.lang.String id)
Construct the BuddyIconUrl.

If none available, return the default, or an URL assembled from farm, iconserver and nsid.

Parameters:
iconFarm -
iconServer -
id -
Returns:
The BuddyIconUrl
See Also:
Flickr Documentation


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