Class RestContentResource

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

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

      Constructors 
      Constructor Description
      RestContentResource()  
      RestContentResource​(org.projectnessie.services.config.ServerConfig config, org.projectnessie.versioned.VersionStore<org.projectnessie.model.Content,​org.projectnessie.model.CommitMeta,​org.projectnessie.model.Content.Type> store, org.projectnessie.services.authz.Authorizer authorizer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.projectnessie.model.Content getContent​(org.projectnessie.model.ContentKey key, java.lang.String ref, java.lang.String hashOnRef)  
      org.projectnessie.model.GetMultipleContentsResponse getMultipleContents​(java.lang.String ref, java.lang.String hashOnRef, org.projectnessie.model.GetMultipleContentsRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestContentResource

        public RestContentResource()
      • RestContentResource

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

      • getContent

        public org.projectnessie.model.Content getContent​(org.projectnessie.model.ContentKey key,
                                                          java.lang.String ref,
                                                          java.lang.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​(java.lang.String ref,
                                                                                       java.lang.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