|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.on.plugins.tomcat.helper.FileContentDelegate
public class FileContentDelegate
Delegate class used for manipulating artifacts in a Tomcat plugin.
| Constructor Summary | |
|---|---|
FileContentDelegate(File directory,
String packageTypeName)
|
|
| Method Summary | |
|---|---|
void |
createContent(File contentFile,
InputStream content,
boolean unzip)
Creates a new package described by the specified details. |
void |
deleteContent(PackageDetails details)
Deletes the underlying file for the specified package. |
Set<ResourcePackageDetails> |
discoverDeployedPackages()
|
InputStream |
getContent(PackageDetails details)
Returns a stream from which the content of the specified package can be read. |
File |
getDirectory()
|
String |
getPackageTypeName()
|
File |
getPath(PackageDetails details)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileContentDelegate(File directory,
String packageTypeName)
| Method Detail |
|---|
public String getPackageTypeName()
public File getDirectory()
public void createContent(File contentFile,
InputStream content,
boolean unzip)
details - describes the package being createdcontent - content to be written for the package. NOTE this Stream will be closed by this method.unzip - if true, the content stream will be treated like a ZIP file and be unzipped as
it is written, using the package name as the base directory; if false the
content will be written to directly to a file using the package name as the file namepublic File getPath(PackageDetails details)
public InputStream getContent(PackageDetails details)
details - package being loaded
null, an
exception is thrown if the content cannot be loadedpublic void deleteContent(PackageDetails details)
details - package to deletepublic Set<ResourcePackageDetails> discoverDeployedPackages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||