Package ch.tocco.nice2.dms.impl.tree.uri
Class ContentProtocolProvider
java.lang.Object
ch.tocco.nice2.dms.impl.tree.uri.ContentProtocolProvider
- All Implemented Interfaces:
ProtocolProvider
This class provides resolving of HTTP(S)-URIs.
-
Constructor Summary
ConstructorDescriptionContentProtocolProvider
(ContentUriResolver contentUriResolver, InternalContentUriCache contentUriCache) -
Method Summary
-
Constructor Details
-
ContentProtocolProvider
public ContentProtocolProvider(@Lazy ContentUriResolver contentUriResolver, @Lazy InternalContentUriCache contentUriCache)
-
-
Method Details
-
resolve
Resolves a content uri.- Specified by:
resolve
in interfaceProtocolProvider
- Parameters:
uri
- The URI to resolve.- Returns:
- the resolved target.
- Throws:
UnresolvableContentUriTargetException
- if the URI could not be resolved, but a fallback node was found.AccessDeniedException
- if the URI could not be resolved because the current user is not permitted to access the target.UnresolvableUriException
- if something else went wrong or if there is a fallback node which mustn't be accessed by the current user.
-