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)
          Create ClientCollection bound to URI with no authentication.
static ClientCollection getCollection(String uri, String authString)
          Create ClientCollection bound to URI with an authentication string.
static ClientCollection getCollection(String uri, String username, String password)
          Create ClientCollection bound to URI.
 
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

getCollection

public static ClientCollection getCollection(String uri,
                                             String authString)
                                      throws ProponoException
Create ClientCollection bound to URI with an authentication string. Useful for create, update and deletes via Google Data API.

Throws:
ProponoException

getCollection

public static ClientCollection getCollection(String uri)
                                      throws ProponoException
Create ClientCollection bound to URI with no authentication. Useful for retrieving entries via Google Data API.

Throws:
ProponoException