Package nl.knaw.dans.lib.dataverse
Class BasicFileAccessApi
java.lang.Object
nl.knaw.dans.lib.dataverse.BasicFileAccessApi
Basic file access API end-points.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Path
<T> T
getFile
(GetFileOptions options, GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> T
getFile
(GetFileOptions options, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> T
getFile
(GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) <T> T
getFile
(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) getQueryParamsFromMetadataKeys
(Map<String, String> metadataKeys) protected Path
toString()
protected Path
versionedSubPath
(String endPoint, String version)
-
Field Details
-
persistendId
- See Also:
-
publish
- See Also:
-
invocationIdHeaderName
- See Also:
-
targetBase
-
id
-
isPersistentId
protected final boolean isPersistentId -
extraHeaders
-
MDKEY_PARAM_NAME_PREFIX
- See Also:
-
httpClientWrapper
protected final nl.knaw.dans.lib.dataverse.HttpClientWrapper httpClientWrapper
-
-
Method Details
-
getFile
public <T> T getFile(GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) throws DataverseException, IOException - Throws:
DataverseException
IOException
-
getFile
public <T> T getFile(GetFileOptions options, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) throws DataverseException, IOException - Throws:
DataverseException
IOException
-
getFile
public <T> T getFile(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) throws DataverseException, IOException - Throws:
DataverseException
IOException
-
getFile
public <T> T getFile(GetFileOptions options, GetFileRange range, org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) throws DataverseException, IOException - Throws:
DataverseException
IOException
-
toString
-
params
-
subPath
-
versionedSubPath
-
buildPath
-
getQueryParamsFromMetadataKeys
-