public class ProjectExporter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectExporter.FileNameFactory |
static class |
ProjectExporter.OverwriteMode |
static interface |
ProjectExporter.ProjectFilter<T extends com.eviware.soapui.model.project.Project> |
Modifier and Type | Field and Description |
---|---|
static String |
READY_API_PROJECT_FILENAME_PREFIX |
Constructor and Description |
---|
ProjectExporter(WsdlProjectPro project) |
Modifier and Type | Method and Description |
---|---|
boolean |
exportProject(String exportPath)
Creates packed project on given path
|
boolean |
exportProject(String exportPath,
ProjectExporter.ProjectFilter filter) |
boolean |
exportProject(String exportPath,
ProjectExporter.ProjectFilter filter,
String password) |
static File |
extractReadyApiProjectFromProjectZip(InputStream input) |
static File |
extractReadyApiProjectFromProjectZip(InputStream input,
File targetDirectory,
ProjectExporter.OverwriteMode mode) |
String |
getProjectFileName() |
static List<String> |
getZipContents(String archive) |
static List<String> |
getZipContents(ZipFile zipFile) |
void |
setProjectFileName(String projectFileName) |
static void |
unpackageAll(String archive,
ProjectExporter.FileNameFactory filenameFactory) |
static void |
unpackageAll(String fileName,
String absolutePath) |
public static final String READY_API_PROJECT_FILENAME_PREFIX
public ProjectExporter(WsdlProjectPro project)
public static File extractReadyApiProjectFromProjectZip(InputStream input) throws IOException
IOException
public static File extractReadyApiProjectFromProjectZip(InputStream input, File targetDirectory, ProjectExporter.OverwriteMode mode) throws IOException
IOException
public boolean exportProject(String exportPath) throws IOException, org.apache.xmlbeans.XmlException, com.eviware.soapui.support.SoapUIException
exportPath
- com.eviware.soapui.support.SoapUIException
org.apache.xmlbeans.XmlException
IOException
public boolean exportProject(String exportPath, ProjectExporter.ProjectFilter filter) throws org.apache.xmlbeans.XmlException, IOException, com.eviware.soapui.support.SoapUIException
org.apache.xmlbeans.XmlException
IOException
com.eviware.soapui.support.SoapUIException
public boolean exportProject(String exportPath, ProjectExporter.ProjectFilter filter, String password) throws org.apache.xmlbeans.XmlException, IOException, com.eviware.soapui.support.SoapUIException
org.apache.xmlbeans.XmlException
IOException
com.eviware.soapui.support.SoapUIException
public static void unpackageAll(String fileName, String absolutePath) throws IOException
IOException
public static void unpackageAll(String archive, ProjectExporter.FileNameFactory filenameFactory) throws IOException
IOException
public static List<String> getZipContents(String archive) throws IOException
IOException
public static List<String> getZipContents(ZipFile zipFile) throws IOException
IOException
public String getProjectFileName()
public void setProjectFileName(String projectFileName)
Copyright © 2019. All rights reserved.