com.sun.syndication.propono.atom.client
Class AtomClientFactory

java.lang.Object
  extended by com.sun.syndication.propono.atom.client.AtomClientFactory

public class AtomClientFactory
extends Object

Creates AtomService or ClientCollection based on username, password and end-point URI of Atom protocol service.


Constructor Summary
AtomClientFactory()
           
 
Method Summary
static ClientAtomService getAtomService(String uri, String username, String password)
          Create AtomService by reading service doc from Atom Server.
static ClientCollection getCollection(String uri, String username, String password)
          Create ClientCollection bound to URI.
static ClientAtomService getGDataAtomService(String uri, String email, String password, String service)
          Create AtomService by reading service doc from GData Atom Server.
static ClientCollection getGDataCollection(String uri, String email, String password, String service)
          Create ClientCollection via collection URI from GData Atom Server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomClientFactory

public AtomClientFactory()
Method Detail

getAtomService

public static ClientAtomService getAtomService(String uri,
                                               String username,
                                               String password)
                                        throws ProponoException
Create AtomService by reading service doc from Atom Server.

Throws:
ProponoException

getCollection

public static ClientCollection getCollection(String uri,
                                             String username,
                                             String password)
                                      throws ProponoException
Create ClientCollection bound to URI.

Throws:
ProponoException

getGDataAtomService

public static ClientAtomService getGDataAtomService(String uri,
                                                    String email,
                                                    String password,
                                                    String service)
                                             throws ProponoException
Create AtomService by reading service doc from GData Atom Server.

Parameters:
uri - URI of Atom service document
email - Gmail email address, used as username
password - Password for Gmail email account
service - Type of service, e.g. 'blogger'
Throws:
ProponoException

getGDataCollection

public static ClientCollection getGDataCollection(String uri,
                                                  String email,
                                                  String password,
                                                  String service)
                                           throws ProponoException
Create ClientCollection via collection URI from GData Atom Server.

Parameters:
uri - URI of collection
email - Gmail email address, used as username
password - Password for Gmail email account
service - Type of service, e.g. 'blogger'
Throws:
ProponoException