public interface WOPIService
Modifier and Type | Method and Description |
---|---|
String |
getActionURL(Blob blob,
String action)
Returns the WOPI action url given a
blob and an action . |
WOPIBlobInfo |
getWOPIBlobInfo(Blob blob)
Returns a
WOPIBlobInfo for the given blob if it is supported by WOPI, null otherwise. |
boolean |
isEnabled()
Returns @{code true} if WOPI is enabled,
false otherwise. |
boolean |
refreshDiscovery()
Refreshes the WOPI discovery: fetches the data from the discovery URL, stores it and loads it in memory.
|
boolean |
verifyProofKey(String proofKeyHeader,
String oldProofKeyHeader,
String url,
String accessToken,
String timestampHeader)
Verifies that the request originate from Office Online.
|
boolean isEnabled()
false
otherwise.
The WOPI discovery XML file has been loaded.
WOPIBlobInfo getWOPIBlobInfo(Blob blob)
WOPIBlobInfo
for the given blob if it is supported by WOPI, null
otherwise.String getActionURL(Blob blob, String action)
blob
and an action
.boolean verifyProofKey(String proofKeyHeader, String oldProofKeyHeader, String url, String accessToken, String timestampHeader)
boolean refreshDiscovery()
true
if refreshing the discovery has succeeded, false
otherwiseCopyright © 2019 Nuxeo. All rights reserved.