Class RestContentResource

  • All Implemented Interfaces:
    org.projectnessie.api.ContentApi, org.projectnessie.api.http.HttpContentApi

    @RequestScoped
    public class RestContentResource
    extends Object
    implements org.projectnessie.api.http.HttpContentApi
    REST endpoint for the content-API.
    • Constructor Detail

      • RestContentResource

        public RestContentResource()
      • RestContentResource

        @Inject
        public RestContentResource​(ServerConfig config,
                                   org.projectnessie.versioned.VersionStore<org.projectnessie.model.Content,​org.projectnessie.model.CommitMeta,​org.projectnessie.model.Content.Type> store,
                                   AccessChecker accessChecker)
    • Method Detail

      • getContent

        public org.projectnessie.model.Content getContent​(org.projectnessie.model.ContentKey key,
                                                          String ref,
                                                          String hashOnRef)
                                                   throws org.projectnessie.error.NessieNotFoundException
        Specified by:
        getContent in interface org.projectnessie.api.ContentApi
        Specified by:
        getContent in interface org.projectnessie.api.http.HttpContentApi
        Throws:
        org.projectnessie.error.NessieNotFoundException
      • getMultipleContents

        public org.projectnessie.model.GetMultipleContentsResponse getMultipleContents​(String ref,
                                                                                       String hashOnRef,
                                                                                       org.projectnessie.model.GetMultipleContentsRequest request)
                                                                                throws org.projectnessie.error.NessieNotFoundException
        Specified by:
        getMultipleContents in interface org.projectnessie.api.ContentApi
        Specified by:
        getMultipleContents in interface org.projectnessie.api.http.HttpContentApi
        Throws:
        org.projectnessie.error.NessieNotFoundException