public interface ServerRepository
ServerRepository
represents a repository for storing any artifacts of type ManagedArtifact
received by HTTP POST upload request. The artifacts are saved and returned as a type extending
ManagedArtifact
which the implementations are free to implement.Modifier and Type | Method and Description |
---|---|
ManagedArtifact |
getArtifact(String pathInfo)
Returns the artifact if there is a matching artifact for the requested artifact.
|
Class<? extends ManagedArtifact> |
getConfiguredManagedArtifactClass()
Returns the configured
ManagedArtifact class |
File |
getRepositoryFolder()
Returns the repository folder
|
ManagedArtifact |
saveContents(UploadedArtifact uploadedArtifact)
Saves the
UploadedArtifact and returns a repository managed artifact. |
ManagedArtifact saveContents(UploadedArtifact uploadedArtifact)
UploadedArtifact
and returns a repository managed artifact.uploadedArtifact
- UploadedArtifact
received by from the upload request.ManagedArtifact getArtifact(String pathInfo)
pathInfo
- Path to artifact received in the HTTP request.ArtifactDownloadException
.Class<? extends ManagedArtifact> getConfiguredManagedArtifactClass()
ManagedArtifact
classManagedArtifact
class that the ServerRepository
is managingCopyright © 2016 PayPal Open Source. All rights reserved.