Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Sometimes, it is needed to download binary content from external server (under the same auth control). This binary content cannot be represented by Resource and so cannot be resolved by any existing APIs.
Therefore, we need a new API like the following:
public interface ResourceServiceBroker { // SNIP public Binary resolveBinary(String resourceSpace, String absPath) throws ResourceException; public Binary resolveBinary(String resourceSpace, String absPath, Map<String, Object> pathVariables) throws ResourceException; // SNIP }
Binary content doesn't need to be cached by default in framework level in general. Perhaps it can be in application-level (CRISP API callers) though.