X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fjcr%2Fproxy%2FResourceProxy.java;fp=server%2Fruntime%2Forg.argeo.server.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fjcr%2Fproxy%2FResourceProxy.java;h=265ee935282fd7ae3efc15d2261263481c866f05;hb=2d4dd736ab07b1ef3aaec0a9e5d29f30c551de9c;hp=0000000000000000000000000000000000000000;hpb=f8040c479e5c098c9ef1809baefd05c00dccdc63;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/proxy/ResourceProxy.java b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/proxy/ResourceProxy.java new file mode 100644 index 000000000..265ee9352 --- /dev/null +++ b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/proxy/ResourceProxy.java @@ -0,0 +1,19 @@ +package org.argeo.jcr.proxy; + +import javax.jcr.Node; +import javax.jcr.Session; + +/** A proxy which nows how to resolve and synchronize relative URLs */ +public interface ResourceProxy { + /** Path to the proxied node (which may not already exist) */ + public String getNodePath(String relativePath); + + /** + * Proxy the file referenced by this relative path in the underlying + * repository + * + * @return the unique identifier of the proxied Node, null if + * the resource was not found (e.g. HTPP 404) + */ + public Node proxy(Session session,String relativePath); +}