All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.hana.datalake.files.directaccess.BaseSignedUrl Maven / Gradle / Ivy

Go to download

An implementation of org.apache.hadoop.fs.FileSystem targeting SAP HANA Data Lake Files.

There is a newer version: 3.0.27
Show newest version
// © 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