public abstract class AbstractUrlProxy extends java.lang.Object implements ResourceProxy
Constructor and Description |
---|
AbstractUrlProxy() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeDestroySessionLogout()
Called before the (admin) session is logged out when resources are released.
|
protected void |
beforeInitSessionSave(Session session)
Called before the (admin) session is saved at the end of the initialization.
|
protected Node |
importFile(Session session,
java.lang.String path,
java.io.InputStream in) |
Node |
proxy(java.lang.String path)
Proxy the file referenced by this relative path in the underlying
repository.
|
protected Node |
proxyUrl(Session session,
java.lang.String remoteUrl,
java.lang.String path)
Session is not saved
|
protected abstract Node |
retrieve(Session session,
java.lang.String path) |
protected Node |
retrieveAndSave(java.lang.String path) |
void |
setJcrRepository(Repository jcrRepository) |
void |
setProxyWorkspace(java.lang.String localWorkspace) |
protected java.lang.Boolean |
shouldUpdate(Session clientSession,
java.lang.String nodePath)
Whether the file should be updated.
|
protected void beforeInitSessionSave(Session session) throws RepositoryException
RepositoryException
protected void beforeDestroySessionLogout() throws RepositoryException
RepositoryException
public Node proxy(java.lang.String path)
ResourceProxy
proxy
in interface ResourceProxy
null
if the resource was not found
(e.g. HTTP 404)protected Node retrieveAndSave(java.lang.String path)
protected Node proxyUrl(Session session, java.lang.String remoteUrl, java.lang.String path) throws RepositoryException
RepositoryException
protected Node importFile(Session session, java.lang.String path, java.io.InputStream in) throws RepositoryException
RepositoryException
protected java.lang.Boolean shouldUpdate(Session clientSession, java.lang.String nodePath)
public void setJcrRepository(Repository jcrRepository)
public void setProxyWorkspace(java.lang.String localWorkspace)
Copyright © 2007–2020. All rights reserved.