[Nodal-cvs] nodal/j-src/storage/http HttpNode.java,1.2,1.3 HttpRepository.java,1.14,1.15
Status: Pre-Alpha
Brought to you by:
leei
From: Lee I. <le...@us...> - 2004-11-15 19:22:20
|
Update of /cvsroot/nodal/nodal/j-src/storage/http In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4642/storage/http Modified Files: HttpNode.java HttpRepository.java Log Message: Change name of RepoServices to RepoBackend throughout. o update references and field and method names Index: HttpRepository.java =================================================================== RCS file: /cvsroot/nodal/nodal/j-src/storage/http/HttpRepository.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** HttpRepository.java 15 Sep 2004 20:57:15 -0000 1.14 --- HttpRepository.java 15 Nov 2004 19:21:58 -0000 1.15 *************** *** 25,29 **** import org.nodal.util.Namespace; ! import storage.framework.AbstractRepoServices; import storage.framework.AbstractRepository; import storage.framework.AnchorNodeImpl; --- 25,29 ---- import org.nodal.util.Namespace; ! import storage.framework.AbstractRepoBackend; import storage.framework.AbstractRepository; import storage.framework.AnchorNodeImpl; *************** *** 44,48 **** * @author leei */ ! private final class Services extends AbstractRepoServices { /** --- 44,48 ---- * @author leei */ ! private final class Services extends AbstractRepoBackend { /** *************** *** 55,59 **** /* (non-Javadoc) ! * @see storage.framework.RepoServices#createNode(org.nodal.type.NodeType, org.nodal.model.Node) */ public NodeContent.Editor createNode(NodeType type, Node context) { --- 55,59 ---- /* (non-Javadoc) ! * @see storage.framework.RepoBackend#createNode(org.nodal.type.NodeType, org.nodal.model.Node) */ public NodeContent.Editor createNode(NodeType type, Node context) { *************** *** 62,66 **** /* (non-Javadoc) ! * @see storage.framework.RepoServices#cloneNode(org.nodal.model.Node, org.nodal.model.Node) */ public NodeContent.Editor cloneNode(Node node, Node context) { --- 62,66 ---- /* (non-Javadoc) ! * @see storage.framework.RepoBackend#cloneNode(org.nodal.model.Node, org.nodal.model.Node) */ public NodeContent.Editor cloneNode(Node node, Node context) { *************** *** 77,81 **** /* (non-Javadoc) ! * @see storage.framework.RepoServices#txnManager() */ public TxnManager txnManager() { --- 77,81 ---- /* (non-Javadoc) ! * @see storage.framework.RepoBackend#txnManager() */ public TxnManager txnManager() { *************** *** 84,88 **** /* (non-Javadoc) ! * @see storage.framework.RepoServices#commitTxn(storage.memory.TxnResolver) */ public void commitTxn(TxnManager.Resolver txn) { --- 84,88 ---- /* (non-Javadoc) ! * @see storage.framework.RepoBackend#commitTxn(storage.memory.TxnResolver) */ public void commitTxn(TxnManager.Resolver txn) { *************** *** 101,105 **** HttpRepository(Path path) throws IOException { super(path, null); ! setServices(new Services()); this.url = new URL(path.toURLString()); HttpURLConnection.setFollowRedirects(true); --- 101,105 ---- HttpRepository(Path path) throws IOException { super(path, null); ! setBackend(new Services()); this.url = new URL(path.toURLString()); HttpURLConnection.setFollowRedirects(true); *************** *** 136,140 **** SBNStreamServices sbnServices = ! new SBNStreamServices (services, abs, conn.getInputStream(), conn.getContentType()); return StreamBasedNode.createStreamDoc(sbnServices); } catch (IOException e) { --- 136,140 ---- SBNStreamServices sbnServices = ! new SBNStreamServices (backend, abs, conn.getInputStream(), conn.getContentType()); return StreamBasedNode.createStreamDoc(sbnServices); } catch (IOException e) { Index: HttpNode.java =================================================================== RCS file: /cvsroot/nodal/nodal/j-src/storage/http/HttpNode.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** HttpNode.java 15 Sep 2004 20:57:15 -0000 1.2 --- HttpNode.java 15 Nov 2004 19:21:58 -0000 1.3 *************** *** 37,41 **** private NodeContent.Editor initialize() { //System.out.println("Initialize " + this); ! return content.initEdit(this, repo.services()); } --- 37,41 ---- private NodeContent.Editor initialize() { //System.out.println("Initialize " + this); ! return content.initEdit(this, repo.getBackend()); } *************** *** 76,80 **** */ public NodeContent content() { ! return content.nodeContent(this, repo.services(), capability()); } --- 76,80 ---- */ public NodeContent content() { ! return content.nodeContent(this, repo.getBackend(), capability()); } |