Project Wonder 5.0

er.ajax
Class AjaxSocialNetwork

java.lang.Object
  extended by er.ajax.AjaxSocialNetwork
Direct Known Subclasses:
AjaxSocialNetwork.Ask, AjaxSocialNetwork.Delicious, AjaxSocialNetwork.Digg, AjaxSocialNetwork.Facebook, AjaxSocialNetwork.Furl, AjaxSocialNetwork.Google, AjaxSocialNetwork.Magnolia, AjaxSocialNetwork.Netscape, AjaxSocialNetwork.Newsvine, AjaxSocialNetwork.Ning, AjaxSocialNetwork.Rawsugar, AjaxSocialNetwork.Reddit, AjaxSocialNetwork.Spurl, AjaxSocialNetwork.Squidoo, AjaxSocialNetwork.StumbleUpon, AjaxSocialNetwork.Tagtooga, AjaxSocialNetwork.Technorati, AjaxSocialNetwork.WindowsLive, AjaxSocialNetwork.YahooMyWeb

public abstract class AjaxSocialNetwork
extends java.lang.Object

Provides an interface to retrieving information and URLs about various social network sites.

Author:
mschrag

Nested Class Summary
static class AjaxSocialNetwork.Ask
           
static class AjaxSocialNetwork.Delicious
           
static class AjaxSocialNetwork.Digg
           
static class AjaxSocialNetwork.Facebook
           
static class AjaxSocialNetwork.Furl
           
static class AjaxSocialNetwork.Google
           
static class AjaxSocialNetwork.Magnolia
           
static class AjaxSocialNetwork.Netscape
           
static class AjaxSocialNetwork.Newsvine
           
static class AjaxSocialNetwork.Ning
           
static class AjaxSocialNetwork.Rawsugar
           
static class AjaxSocialNetwork.Reddit
           
static class AjaxSocialNetwork.Spurl
           
static class AjaxSocialNetwork.Squidoo
           
static class AjaxSocialNetwork.StumbleUpon
           
static class AjaxSocialNetwork.Tagtooga
           
static class AjaxSocialNetwork.Technorati
           
static class AjaxSocialNetwork.WindowsLive
           
static class AjaxSocialNetwork.YahooMyWeb
           
 
Constructor Summary
AjaxSocialNetwork()
           
 
Method Summary
protected  java.lang.String _submissionUrl(java.lang.String baseUrl, java.lang.String urlKey, java.lang.String targetUrl, java.lang.String titleKey, java.lang.String title, com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.String> additionalParams)
           
 java.lang.String iconFramework()
          Returns the icon framework for the social network.
 java.lang.String iconName()
          Returns the icon path for the social network.
 java.lang.String name()
          Returns the display name of the social network.
static void registerSocialNetworkNamed(AjaxSocialNetwork socialNetwork, java.lang.String name)
          Registers a new social network with the given name.
static AjaxSocialNetwork socialNetworkNamed(java.lang.String name)
          Returns the social network with the given name.
abstract  java.lang.String submissionUrl(java.lang.String url, java.lang.String title)
          Returns the URL for submitting the given url and title to the social network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxSocialNetwork

public AjaxSocialNetwork()
Method Detail

socialNetworkNamed

public static AjaxSocialNetwork socialNetworkNamed(java.lang.String name)
Returns the social network with the given name. Supported names include: delicious, digg, facebook, furl, newsvine, netscape, reddit, stumble, technorati, squidoo, live, yahoo, ask, google, magnolia, ning, rawsugar, spurl, and tagtooga.

Parameters:
name - the name of the social network site
Returns:
the matching Social Network
Throws:
java.util.NoSuchElementException - if there is no social network registered with that name

registerSocialNetworkNamed

public static void registerSocialNetworkNamed(AjaxSocialNetwork socialNetwork,
                                              java.lang.String name)
Registers a new social network with the given name.

Parameters:
socialNetwork - the social network
name - the lookup name

_submissionUrl

protected java.lang.String _submissionUrl(java.lang.String baseUrl,
                                          java.lang.String urlKey,
                                          java.lang.String targetUrl,
                                          java.lang.String titleKey,
                                          java.lang.String title,
                                          com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.String> additionalParams)

name

public java.lang.String name()
Returns the display name of the social network.

Returns:
the display name of the social network

iconFramework

public java.lang.String iconFramework()
Returns the icon framework for the social network.

Returns:
the icon framework for the social network

iconName

public java.lang.String iconName()
Returns the icon path for the social network.

Returns:
the icon path for the social network

submissionUrl

public abstract java.lang.String submissionUrl(java.lang.String url,
                                               java.lang.String title)
Returns the URL for submitting the given url and title to the social network.

Parameters:
url - the URL of the page to submit
title - the title of the pageto submit
Returns:
the submission URL

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.