org.cloudfoundry.client.lib.archive
Class ZipApplicationArchive

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cloudfoundry.client.lib.archive.ApplicationArchive
ApplicationArchive.Entry
 
Constructor Summary
ZipApplicationArchive(ZipFile zipFile)
          Create a new ZipApplicationArchive instance for the given zipFile.
 
Method Summary
 Iterable<ApplicationArchive.Entry> getEntries()
          Returns entries that the archive contains.
 String getFilename()
          Returns the filename of the archive (excluding any path).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipApplicationArchive

public ZipApplicationArchive(ZipFile zipFile)
Create a new ZipApplicationArchive instance for the given zipFile.

Parameters:
zipFile - The underling zip file
Method Detail

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.