mirror of https://bitbucket.org/ausocean/av.git
25 lines
505 B
JavaScript
25 lines
505 B
JavaScript
import URLToolkit from '../../url-toolkit/url-toolkit.js';
|
|
|
|
export default class LevelKey {
|
|
constructor(baseURI, relativeURI) {
|
|
this._uri = null;
|
|
|
|
this.baseuri;
|
|
this.reluri;
|
|
this.method = null;
|
|
this.key = null;
|
|
this.iv = null;
|
|
|
|
this.baseuri = baseURI;
|
|
this.reluri = relativeURI;
|
|
}
|
|
|
|
get uri() {
|
|
if (!this._uri && this.reluri) {
|
|
this._uri = URLToolkit.buildAbsoluteURL(this.baseuri, this.reluri, { alwaysNormalize: true });
|
|
}
|
|
|
|
return this._uri;
|
|
}
|
|
}
|