X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.core%2Fsrc%2Forg%2Fargeo%2Fjcr%2Fproxy%2FResourceProxy.java;fp=org.argeo.core%2Fsrc%2Forg%2Fargeo%2Fjcr%2Fproxy%2FResourceProxy.java;h=84eea1f310e73b4df4707d0374e138e4c01f6027;hb=8c2f9a6ead2db97e1713f2ec5e486ce7c45fbc13;hp=0000000000000000000000000000000000000000;hpb=72788789268d2ac01dcb817d134c057307ba6de8;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.core/src/org/argeo/jcr/proxy/ResourceProxy.java b/org.argeo.core/src/org/argeo/jcr/proxy/ResourceProxy.java new file mode 100644 index 000000000..84eea1f31 --- /dev/null +++ b/org.argeo.core/src/org/argeo/jcr/proxy/ResourceProxy.java @@ -0,0 +1,16 @@ +package org.argeo.jcr.proxy; + +import javax.jcr.Node; + +/** A proxy which nows how to resolve and synchronize relative URLs */ +public interface ResourceProxy { + /** + * Proxy the file referenced by this relative path in the underlying + * repository. A new session is created by each call, so the underlying + * session of the returned node must be closed by the caller. + * + * @return the proxied Node, null if the resource was not found + * (e.g. HTTP 404) + */ + public Node proxy(String relativePath); +}