com.sap.hana.datalake.files.directaccess.BaseSignedUrl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sap-hdlfs Show documentation
Show all versions of sap-hdlfs Show documentation
An implementation of org.apache.hadoop.fs.FileSystem targeting SAP HANA Data Lake Files.
// © 2023 SAP SE or an SAP affiliate company. All rights reserved.
package com.sap.hana.datalake.files.directaccess;
import java.util.Map;
import com.sap.hana.datalake.files.HdlfsFileSystemCapabilities.DirectAccessSignedUrl;
public abstract class BaseSignedUrl {
protected final String url;
protected final Map headers;
protected final int expirationSafetyMarginSeconds;
public BaseSignedUrl(final DirectAccessSignedUrl directAccessSignedUrl, final int expirationSafetyMarginSeconds) {
this.url = directAccessSignedUrl.getEndpoint();
this.headers = directAccessSignedUrl.getHeaders();
this.expirationSafetyMarginSeconds = expirationSafetyMarginSeconds;
}
public String getUrl() {
return this.url;
}
public Map getHeaders() {
return this.headers;
}
public abstract boolean isExpired();
}
// © 2023 SAP SE or an SAP affiliate company. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy