Package org.projectnessie.services.rest
Class RestContentResource
- java.lang.Object
-
- org.projectnessie.services.rest.RestContentResource
-
- All Implemented Interfaces:
org.projectnessie.api.v1.ContentApi,org.projectnessie.api.v1.http.HttpContentApi
@RequestScoped public class RestContentResource extends java.lang.Object implements org.projectnessie.api.v1.http.HttpContentApiREST endpoint for the content-API.
-
-
Constructor Summary
Constructors Constructor Description RestContentResource()RestContentResource(org.projectnessie.services.config.ServerConfig config, org.projectnessie.versioned.VersionStore store, org.projectnessie.services.authz.Authorizer authorizer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.projectnessie.model.ContentgetContent(org.projectnessie.model.ContentKey key, java.lang.String ref, java.lang.String hashOnRef)org.projectnessie.model.GetMultipleContentsResponsegetMultipleContents(java.lang.String ref, java.lang.String hashOnRef, org.projectnessie.model.GetMultipleContentsRequest request)
-
-
-
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:
getContentin interfaceorg.projectnessie.api.v1.ContentApi- Specified by:
getContentin interfaceorg.projectnessie.api.v1.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:
getMultipleContentsin interfaceorg.projectnessie.api.v1.ContentApi- Specified by:
getMultipleContentsin interfaceorg.projectnessie.api.v1.http.HttpContentApi- Throws:
org.projectnessie.error.NessieNotFoundException
-
-