org.cloudfoundry.client.lib.archive
Class ZipApplicationArchive
java.lang.Object
org.cloudfoundry.client.lib.archive.ZipApplicationArchive
- All Implemented Interfaces:
- ApplicationArchive
public class ZipApplicationArchive
- extends Object
- implements ApplicationArchive
Implementation of ApplicationArchive
backed by a ZipFile
.
- Author:
- Phillip Webb
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipApplicationArchive
public ZipApplicationArchive(ZipFile zipFile)
- Create a new
ZipApplicationArchive
instance for the given zipFile.
- Parameters:
zipFile
- The underling zip file
getEntries
public Iterable<ApplicationArchive.Entry> getEntries()
- Description copied from interface:
ApplicationArchive
- Returns
entries
that the archive contains.
- Specified by:
getEntries
in interface ApplicationArchive
- Returns:
- a collection of entries.
getFilename
public String getFilename()
- Description copied from interface:
ApplicationArchive
- Returns the filename of the archive (excluding any path).
- Specified by:
getFilename
in interface ApplicationArchive
- Returns:
- the filename (for example myproject.war)
Copyright © 2014. All rights reserved.