Package org.nuxeo.ecm.core.io.download
Class DefaultRedirectResolver
java.lang.Object
org.nuxeo.ecm.core.io.download.DefaultRedirectResolver
- All Implemented Interfaces:
RedirectResolver
- Since:
- 8.3 Use the BlobManager getURI method for redirect
- Author:
- Remi Cattiau
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetURI
(Blob blob, BlobManager.UsageHint usage, javax.servlet.http.HttpServletRequest request) Return a redirect URI if possible to the specified Blob
-
Constructor Details
-
DefaultRedirectResolver
public DefaultRedirectResolver()
-
-
Method Details
-
getURI
public URI getURI(Blob blob, BlobManager.UsageHint usage, javax.servlet.http.HttpServletRequest request) throws IOException Description copied from interface:RedirectResolver
Return a redirect URI if possible to the specified Blob- Specified by:
getURI
in interfaceRedirectResolver
- Parameters:
blob
- to get the URI forusage
- forrequest
- Native Http request- Returns:
- The URI to the resource or null if cannot create a direct URI
- Throws:
IOException
-