org.cloudfoundry.client.lib.archive
Class DirectoryApplicationArchive

java.lang.Object
  extended by org.cloudfoundry.client.lib.archive.DirectoryApplicationArchive
All Implemented Interfaces:
ApplicationArchive

public class DirectoryApplicationArchive
extends Object
implements ApplicationArchive

Implementation of ApplicationArchive backed by a ZipFile.

Author:
A.B.Srinivasan, Phillip Webb

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cloudfoundry.client.lib.archive.ApplicationArchive
ApplicationArchive.Entry
 
Constructor Summary
DirectoryApplicationArchive(File directory)
           
 
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

DirectoryApplicationArchive

public DirectoryApplicationArchive(File directory)
Method Detail

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)

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.


Copyright © 2013. All rights reserved.