Class HttpApiV1
- java.lang.Object
-
- org.projectnessie.client.http.v1api.HttpApiV1
-
- All Implemented Interfaces:
AutoCloseable,NessieApi,NessieApiV1
public final class HttpApiV1 extends Object implements NessieApiV1
-
-
Constructor Summary
Constructors Constructor Description HttpApiV1(NessieApiClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssignBranchBuilderassignBranch()Update a branch.AssignTagBuilderassignTag()Update a tag.voidclose()CommitMultipleOperationsBuildercommitMultipleOperations()CreateReferenceBuildercreateReference()Create a new reference.DeleteBranchBuilderdeleteBranch()Delete a branch.DeleteTagBuilderdeleteTag()Delete a tag.GetAllReferencesBuildergetAllReferences()Get all references.GetCommitLogBuildergetCommitLog()Retrieve the commit log for a ref, potentially truncated by the backend.NessieConfigurationgetConfig()Get the server configuration.GetContentBuildergetContent()BranchgetDefaultBranch()Get details for the default reference.GetDiffBuildergetDiff()Retrieve a diff between two references.GetEntriesBuildergetEntries()Retrieve objects for a ref, potentially truncated by the backend.GetReferenceBuildergetReference()Get details of a particular ref, if it exists.GetRefLogBuildergetRefLog()Retrieve the reflog from the HEAD of the RefLog resource, potentially truncated by the backend.MergeReferenceBuildermergeRefIntoBranch()merge mergeRef onto ref.TransplantCommitsBuildertransplantCommitsIntoBranch()cherry pick a set of commits into a branch.
-
-
-
Constructor Detail
-
HttpApiV1
public HttpApiV1(NessieApiClient client)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceNessieApi
-
getConfig
public NessieConfiguration getConfig()
Description copied from interface:NessieApiV1Get the server configuration.- Specified by:
getConfigin interfaceNessieApiV1
-
getDefaultBranch
public Branch getDefaultBranch() throws NessieNotFoundException
Description copied from interface:NessieApiV1Get details for the default reference.- Specified by:
getDefaultBranchin interfaceNessieApiV1- Throws:
NessieNotFoundException
-
getContent
public GetContentBuilder getContent()
- Specified by:
getContentin interfaceNessieApiV1
-
getAllReferences
public GetAllReferencesBuilder getAllReferences()
Description copied from interface:NessieApiV1Get all references.- Specified by:
getAllReferencesin interfaceNessieApiV1
-
getReference
public GetReferenceBuilder getReference()
Description copied from interface:NessieApiV1Get details of a particular ref, if it exists.- Specified by:
getReferencein interfaceNessieApiV1
-
createReference
public CreateReferenceBuilder createReference()
Description copied from interface:NessieApiV1Create a new reference.- Specified by:
createReferencein interfaceNessieApiV1
-
getEntries
public GetEntriesBuilder getEntries()
Description copied from interface:NessieApiV1Retrieve objects for a ref, potentially truncated by the backend.Retrieves up to
maxRecordsobjects for the given named reference (tag or branch). The backend may respect the givenmaxrecords hint, but return less or more entries. Backends may also cap the returned entries at a hard-coded limit, the default REST server implementation has such a hard-coded limit.Invoking
getEntries()does not guarantee to return all commit log entries of a given reference, because the result can be truncated by the backend.To implement paging, check
EntriesResponse.isHasMore()and, iftrue, pass the value ofEntriesResponse.getToken()in the next invocation ofgetEntries()as thepageTokenparameter.See
org.projectnessie.client.StreamingUtilinnessie-client.- Specified by:
getEntriesin interfaceNessieApiV1
-
getCommitLog
public GetCommitLogBuilder getCommitLog()
Description copied from interface:NessieApiV1Retrieve the commit log for a ref, potentially truncated by the backend.Retrieves up to
maxRecordscommit-log-entries starting at the HEAD of the given named reference (tag or branch). The backend may respect the givenmaxrecords hint, but return less or more entries. Backends may also cap the returned entries at a hard-coded limit, the default REST server implementation has such a hard-coded limit.Invoking
getCommitLog()does not guarantee to return all commit log entries of a given reference, because the result can be truncated by the backend.To implement paging, check
LogResponse.isHasMore()and, iftrue, pass the value ofLogResponse.getToken()in the next invocation ofgetCommitLog()as thepageTokenparameter.See
org.projectnessie.client.StreamingUtilinnessie-client.- Specified by:
getCommitLogin interfaceNessieApiV1
-
assignTag
public AssignTagBuilder assignTag()
Description copied from interface:NessieApiV1Update a tag.- Specified by:
assignTagin interfaceNessieApiV1
-
deleteTag
public DeleteTagBuilder deleteTag()
Description copied from interface:NessieApiV1Delete a tag.- Specified by:
deleteTagin interfaceNessieApiV1
-
assignBranch
public AssignBranchBuilder assignBranch()
Description copied from interface:NessieApiV1Update a branch.- Specified by:
assignBranchin interfaceNessieApiV1
-
deleteBranch
public DeleteBranchBuilder deleteBranch()
Description copied from interface:NessieApiV1Delete a branch.- Specified by:
deleteBranchin interfaceNessieApiV1
-
transplantCommitsIntoBranch
public TransplantCommitsBuilder transplantCommitsIntoBranch()
Description copied from interface:NessieApiV1cherry pick a set of commits into a branch.- Specified by:
transplantCommitsIntoBranchin interfaceNessieApiV1
-
mergeRefIntoBranch
public MergeReferenceBuilder mergeRefIntoBranch()
Description copied from interface:NessieApiV1merge mergeRef onto ref.- Specified by:
mergeRefIntoBranchin interfaceNessieApiV1
-
commitMultipleOperations
public CommitMultipleOperationsBuilder commitMultipleOperations()
- Specified by:
commitMultipleOperationsin interfaceNessieApiV1
-
getDiff
public GetDiffBuilder getDiff()
Description copied from interface:NessieApiV1Retrieve a diff between two references.- Specified by:
getDiffin interfaceNessieApiV1
-
getRefLog
public GetRefLogBuilder getRefLog()
Description copied from interface:NessieApiV1Retrieve the reflog from the HEAD of the RefLog resource, potentially truncated by the backend.Retrieves up to
maxRecordsrefLog-entries starting at the HEAD of the RefLog resource. The backend may respect the givenmaxrecords hint, but return less or more entries. Backends may also cap the returned entries at a hard-coded limit, the default REST server implementation has such a hard-coded limit.Invoking
getRefLog()does not guarantee to return all reflog entries, because the result can be truncated by the backend.To implement paging, check
RefLogResponse.isHasMore()and, iftrue, pass the value ofRefLogResponse.getToken()in the next invocation ofgetRefLog()as thepageTokenparameter.See
org.projectnessie.client.StreamingUtilinnessie-client.- Specified by:
getRefLogin interfaceNessieApiV1
-
-