public class AtomService extends Object
Modifier and Type | Field and Description |
---|---|
static org.jdom2.Namespace |
ATOM_FORMAT
Namespace for Atom Syndication Format
|
static org.jdom2.Namespace |
ATOM_PROTOCOL
Namespace for Atom Publishing Protocol
|
Constructor and Description |
---|
AtomService()
Create new and empty Atom service
|
Modifier and Type | Method and Description |
---|---|
void |
addWorkspace(Workspace workspace)
Add Workspace to service.
|
static AtomService |
documentToService(org.jdom2.Document document)
Deserialize an Atom service XML document into an object
|
Workspace |
findWorkspace(String title)
Find workspace by title.
|
List<Workspace> |
getWorkspaces()
Get Workspaces available from service.
|
org.jdom2.Document |
serviceToDocument()
Serialize an AtomService object into an XML document
|
void |
setWorkspaces(List<Workspace> workspaces)
Set Workspaces of service.
|
public static org.jdom2.Namespace ATOM_FORMAT
public static org.jdom2.Namespace ATOM_PROTOCOL
public void addWorkspace(Workspace workspace)
public Workspace findWorkspace(String title)
title
- Match this titlepublic static AtomService documentToService(org.jdom2.Document document) throws ProponoException
ProponoException
public org.jdom2.Document serviceToDocument()
Copyright © 2017. All rights reserved.