Skip to content

Changes

Summary

  1. Introduce URI scheme 'binref' to allow referencing BinaryResource (details)
Commit 8e7357c11fd28f18487847f8817c3c82d0f7fd85 by Ralph Steiner
Introduce URI scheme 'binref' to allow referencing BinaryResource

An URI with scheme 'binref' identifies a BinaryResource. The utility
class BinaryRefs provides methods to get the BinaryResource reference by
such a URI. An application must create classes implementing
'IBinaryRefHandler' in order to load a BinaryResource for a URI. A
handler registers itself for a path. If a (prefix-)path of a binref URI
matches the registration path of a handler this handler is called to
load BinaryResource for this URI.



Change-Id: I16b333223fcf6ed0f1a23bf5ecca3e2362376684
Reviewed-on: https://git.eclipse.org/r/c/scout/org.eclipse.scout.rt/+/166605
Tested-by: Ralph Steiner <rst@bsiag.com>
Reviewed-by: Ralph Steiner <rst@bsiag.com>
Signed-off-by: Ralph Steiner <rst@bsiag.com>
Reviewed-on: https://git.eclipse.org/r/c/scout/org.eclipse.scout.rt/+/165662
Tested-by: Scout Bot <scout-bot@eclipse.org>
The file was addedorg.eclipse.scout.rt.platform/src/main/java/org/eclipse/scout/rt/platform/resource/BinaryRefs.java
The file was addedorg.eclipse.scout.rt.platform/src/main/java/org/eclipse/scout/rt/platform/resource/RootBinaryRefHandler.java
The file was addedorg.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/resource/BinaryRefTest.java
The file was addedorg.eclipse.scout.rt.platform/src/main/java/org/eclipse/scout/rt/platform/resource/BinaryRefSupport.java
The file was addedorg.eclipse.scout.rt.platform/src/main/java/org/eclipse/scout/rt/platform/resource/IBinaryRefHandler.java