Package com.artipie.composer.http
Interface Archive
- All Known Implementing Classes:
Archive.Zip
public interface Archive
Interface for working with archive file. For example, obtaining
composer json file from archive.
- Since:
- 0.4
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Name of archive consisting of name and version.static class
Archive in ZIP format. -
Method Summary
Modifier and TypeMethodDescriptionCompletionStage
<javax.json.JsonObject> composerFrom
(Content archive) Obtains composer json file from archive.name()
Obtains archive name.replaceComposerWith
(Content archive, byte[] composer) Replaces composer json file in existing archive with new one.
-
Method Details
-
composerFrom
Obtains composer json file from archive.- Parameters:
archive
- Content of archive file- Returns:
- Composer json file from archive.
-
replaceComposerWith
Replaces composer json file in existing archive with new one.- Parameters:
archive
- Archive with existing composer jsoncomposer
- Composer json file that we will change the existing one to- Returns:
- Archive with replaced composer json file
-
name
Archive.Name name()Obtains archive name.- Returns:
- Archive name.
-