]> git.argeo.org Git - lgpl/argeo-commons.git/blob - proxy/ResourceProxy.java
Prepare next development cycle
[lgpl/argeo-commons.git] / proxy / ResourceProxy.java
1 package org.argeo.jcr.proxy;
2
3 import javax.jcr.Node;
4
5 /** A proxy which nows how to resolve and synchronize relative URLs */
6 public interface ResourceProxy {
7 /**
8 * Proxy the file referenced by this relative path in the underlying
9 * repository. A new session is created by each call, so the underlying
10 * session of the returned node must be closed by the caller.
11 *
12 * @return the proxied Node, <code>null</code> if the resource was not found
13 * (e.g. HTTP 404)
14 */
15 public Node proxy(String relativePath);
16 }