]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/proxy/ResourceProxy.java
Improve logging
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.jcr / src / main / java / org / argeo / jcr / proxy / ResourceProxy.java
1 package org.argeo.jcr.proxy;
2
3 import javax.jcr.Node;
4 import javax.jcr.Session;
5
6 /** A proxy which nows how to resolve and synchronize relative URLs */
7 public interface ResourceProxy {
8 /** Path to the proxied node (which may not already exist) */
9 public String getNodePath(String relativePath);
10
11 /**
12 * Proxy the file referenced by this relative path in the underlying
13 * repository
14 *
15 * @return the unique identifier of the proxied Node, <code>null</code> if
16 * the resource was not found (e.g. HTPP 404)
17 */
18 public Node proxy(Session session,String relativePath);
19 }