public class AtomConnection extends Object implements BlogConnection
Constructor and Description |
---|
AtomConnection(String uri,
String username,
String password)
Create Atom blog client instance for specified URL and user account.
|
Modifier and Type | Method and Description |
---|---|
Blog |
getBlog(String token)
Get blog by token
|
List<Blog> |
getBlogs()
Returns collection of blogs available from this connection
|
void |
setAppkey(String appkey)
Set appkey (optional, needed by some blog servers)
|
public AtomConnection(String uri, String username, String password) throws BlogClientException
uri
- End-point URL of Atom serviceusername
- Username of accountpassword
- Password of accountBlogClientException
public List<Blog> getBlogs()
getBlogs
in interface BlogConnection
public Blog getBlog(String token)
getBlog
in interface BlogConnection
public void setAppkey(String appkey)
setAppkey
in interface BlogConnection
Copyright © 2017. All rights reserved.