public class RemoteResourcesHandler extends Object
| Constructor and Description |
|---|
RemoteResourcesHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFilters() |
InputStream |
getRemoteResource(String path)
Attempts to retrieve the supplied path from a remote resource.
|
org.springframework.extensions.webscripts.SearchPath |
getSearchPath() |
protected String |
processPath(String path)
By default this method simply returns the path provided.
|
void |
setFilters(List<String> filters) |
void |
setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath) |
public InputStream getRemoteResource(String path)
Attempts to retrieve the supplied path from a remote resource. A remote request will only be made if the path starts with one of the filters defined. This ensures that unnecessary requests are not made that will negatively impact performance.
path - The path to find.InputStream to the requested path or null if it cannot be found.protected String processPath(String path)
public org.springframework.extensions.webscripts.SearchPath getSearchPath()
public void setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath)
Copyright © 2005–2016 Alfresco Software. All rights reserved.