public class WsdlProject extends AbstractTestPropertyHolderWsdlModelItem<ProjectConfig> implements Project, PropertyExpansionContainer, PropertyChangeListener, TestRunnable
| Modifier and Type | Class and Description |
|---|---|
static class |
WsdlProject.ProjectEncryptionStatus |
| Modifier and Type | Field and Description |
|---|---|
static String |
AFTER_LOAD_SCRIPT_PROPERTY |
static String |
BEFORE_SAVE_SCRIPT_PROPERTY |
protected WsdlProject.ProjectEncryptionStatus |
encryptionStatus |
protected EndpointStrategy |
endpointStrategy |
protected EndpointSupport |
endpointSupport |
protected Set<EnvironmentListener> |
environmentListeners |
static String |
ICON_NAME |
protected List<AbstractInterface<?>> |
interfaces |
protected long |
lastModified |
protected static org.apache.log4j.Logger |
log |
protected List<WsdlMockService> |
mockServices |
protected OAuth1ProfileContainer |
oAuth1ProfileContainer |
protected OAuth2ProfileContainer |
oAuth2ProfileContainer |
protected String |
path |
protected SoapuiProjectDocumentConfig |
projectDocument |
protected Set<ProjectListener> |
projectListeners |
static String |
RESOURCE_ROOT_PROPERTY |
protected List<RestMockService> |
restMockServices |
protected List<WsdlTestSuite> |
testSuites |
static SoapUIVersionInfo |
VERSION_IN_READY_API_PROJECT |
protected DefaultWssContainer |
wssContainer |
JBOSSWS_NATURE_ID, SOAPUI_NATURE_IDDESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY| Constructor and Description |
|---|
WsdlProject() |
WsdlProject(InputStream inputStream,
WorkspaceImpl workspace) |
WsdlProject(String path) |
WsdlProject(String projectFile,
String projectPassword) |
WsdlProject(String path,
WorkspaceImpl workspace) |
WsdlProject(String path,
WorkspaceImpl workspace,
boolean open,
String tempName,
String projectPassword) |
WsdlProject(WorkspaceImpl workspace) |
addPropertiesFromFile, addProperty, addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyHolderSupport, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, moveProperty, removeProperty, removeTestPropertyListener, renameProperty, setPropertiesConfig, setPropertyValuedependsOn, getConfig, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettingsaddPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getName, getParent, getProject, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListeneraddTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValuepublic static final String AFTER_LOAD_SCRIPT_PROPERTY
public static final String BEFORE_SAVE_SCRIPT_PROPERTY
public static final String RESOURCE_ROOT_PROPERTY
public static final String ICON_NAME
public static final SoapUIVersionInfo VERSION_IN_READY_API_PROJECT
protected static final org.apache.log4j.Logger log
protected String path
protected List<AbstractInterface<?>> interfaces
protected List<WsdlTestSuite> testSuites
protected List<WsdlMockService> mockServices
protected List<RestMockService> restMockServices
protected Set<ProjectListener> projectListeners
protected SoapuiProjectDocumentConfig projectDocument
protected EndpointStrategy endpointStrategy
protected long lastModified
protected DefaultWssContainer wssContainer
protected OAuth2ProfileContainer oAuth2ProfileContainer
protected OAuth1ProfileContainer oAuth1ProfileContainer
protected Set<EnvironmentListener> environmentListeners
protected WsdlProject.ProjectEncryptionStatus encryptionStatus
protected EndpointSupport endpointSupport
public WsdlProject()
throws org.apache.xmlbeans.XmlException,
IOException,
SoapUIException
org.apache.xmlbeans.XmlExceptionIOExceptionSoapUIExceptionpublic WsdlProject(String path) throws org.apache.xmlbeans.XmlException, IOException, SoapUIException
org.apache.xmlbeans.XmlExceptionIOExceptionSoapUIExceptionpublic WsdlProject(WorkspaceImpl workspace)
public WsdlProject(String path, WorkspaceImpl workspace)
public WsdlProject(String path, WorkspaceImpl workspace, boolean open, String tempName, String projectPassword)
public WsdlProject(InputStream inputStream, WorkspaceImpl workspace)
public boolean isRemote()
public EndpointSupport getEndpointSupport()
public void loadProject(URL file) throws SoapUIException
SoapUIExceptionpublic void loadProject(InputStream inputStream)
public SoapuiProjectDocumentConfig loadProjectFromInputStream(InputStream inputStream) throws org.apache.xmlbeans.XmlException, IOException, GeneralSecurityException
org.apache.xmlbeans.XmlExceptionIOExceptionGeneralSecurityExceptionpublic Environment getActiveEnvironment()
public void setActiveEnvironment(Environment environment)
public boolean isEnvironmentMode()
protected WsdlTestSuite buildTestSuite(TestSuiteConfig config)
public boolean isWrongPasswordSupplied()
protected WsdlProject.ProjectEncryptionStatus checkForEncodedData(ProjectConfig soapuiProject) throws IOException, GeneralSecurityException
soapuiProject - IOExceptionGeneralSecurityExceptionpublic void afterLoad()
afterLoad in class AbstractWsdlModelItem<ProjectConfig>protected void setProjectRoot(String path)
public String getResourceRoot()
getResourceRoot in interface Projectpublic void setResourceRoot(String resourceRoot)
public ImageIcon getIcon()
getIcon in interface ModelItemgetIcon in class AbstractWsdlModelItem<ProjectConfig>public String getDescription()
getDescription in interface ModelItemgetDescription in class AbstractWsdlModelItem<ProjectConfig>public WorkspaceImpl getWorkspace()
getWorkspace in interface Projectpublic AbstractInterface<?> getInterfaceAt(int index)
getInterfaceAt in interface Projectpublic AbstractInterface<?> getInterfaceByName(String interfaceName)
getInterfaceByName in interface Projectpublic AbstractInterface<?> getInterfaceByTechnicalId(String technicalId)
public int getInterfaceCount()
getInterfaceCount in interface Projectpublic SaveStatus save() throws IOException
save in interface ProjectIOExceptionpublic SaveStatus save(String folder) throws IOException
IOExceptionprotected boolean shouldCreateBackup(File projectFile)
protected String createProjectFileName()
protected boolean projectFileModified(File projectFile)
public SaveStatus saveBackup() throws IOException
IOExceptionpublic SaveStatus saveIn(File projectFile) throws IOException
IOExceptionpublic void beforeSave()
beforeSave in class AbstractWsdlModelItem<ProjectConfig>protected void createBackup(File projectFile) throws IOException
IOExceptionprotected void removeDefinitionCaches(SoapuiProjectDocumentConfig config)
public AbstractInterface<?> addNewInterface(String name, String type)
public void addProjectListener(ProjectListener listener)
addProjectListener in interface Projectpublic void removeProjectListener(ProjectListener listener)
removeProjectListener in interface Projectpublic void fireInterfaceAdded(AbstractInterface<?> iface)
public void fireInterfaceRemoved(AbstractInterface<?> iface)
public void fireInterfaceUpdated(AbstractInterface<?> iface)
public void fireTestSuiteAdded(WsdlTestSuite testSuite)
public void fireTestSuiteRemoved(WsdlTestSuite testSuite)
public void fireMockServiceAdded(MockService mockService)
public void fireMockServiceRemoved(MockService mockService)
public void fireEnvironmentAdded(Environment env)
public void fireEnvironmentRemoved(Environment env, int index)
public void fireEnvironmentRenamed(Environment env, String oldName, String newName)
public void removeInterface(AbstractInterface<?> iface)
public void removeTestSuite(WsdlTestSuite testSuite)
public void firePropertyValueChanged(Property property)
public boolean isDisabled()
isDisabled in interface Projectpublic int getTestSuiteCount()
getTestSuiteCount in interface Projectpublic WsdlTestSuite getTestSuiteAt(int index)
getTestSuiteAt in interface Projectpublic WsdlTestSuite getTestSuiteByName(String testSuiteName)
getTestSuiteByName in interface Projectpublic TestSuite getTestSuiteById(UUID testSuiteId)
getTestSuiteById in interface Projectpublic WsdlTestSuite addNewTestSuite(String name)
addNewTestSuite in interface Projectpublic boolean isCacheDefinitions()
public void setCacheDefinitions(boolean cacheDefinitions)
public SaveStatus saveAs(String fileName) throws IOException
IOExceptionpublic void release()
release in interface Projectrelease in interface Releasablerelease in class AbstractWsdlModelItem<ProjectConfig>public WsdlMockService addNewMockService(String name)
addNewMockService in interface Projectpublic void addWsdlMockService(WsdlMockService mockService)
public RestMockService addNewRestMockService(String name)
addNewRestMockService in interface Projectpublic void addRestMockService(RestMockService mockService)
public WsdlMockService getMockServiceAt(int index)
getMockServiceAt in interface Projectpublic WsdlMockService getMockServiceByName(String mockServiceName)
getMockServiceByName in interface Projectpublic int getMockServiceCount()
getMockServiceCount in interface Projectpublic RestMockService getRestMockServiceAt(int index)
getRestMockServiceAt in interface Projectpublic RestMockService getRestMockServiceByName(String mockServiceName)
getRestMockServiceByName in interface Projectpublic int getRestMockServiceCount()
getRestMockServiceCount in interface Projectpublic void removeMockService(MockService mockService)
removeMockService in interface Projectpublic List<TestSuite> getTestSuiteList()
getTestSuiteList in interface Projectpublic List<WsdlMockService> getMockServiceList()
getMockServiceList in interface Projectpublic List<RestMockService> getRestMockServiceList()
getRestMockServiceList in interface Projectpublic List<Interface> getInterfaceList()
getInterfaceList in interface Projectpublic Map<String,MockService> getMockServices()
public void reload()
throws SoapUIException
SoapUIExceptionpublic void reload(String path) throws SoapUIException
SoapUIExceptionpublic AbstractInterface<?> importInterface(AbstractInterface<?> iface, boolean importEndpoints, boolean createCopy)
public WsdlTestSuite importTestSuite(WsdlTestSuite testSuite, String name, int index, boolean createCopy, String description)
public WsdlMockService importMockService(WsdlMockService mockService, String name, boolean createCopy, String description)
public EndpointStrategy getEndpointStrategy()
getEndpointStrategy in interface Projectpublic List<? extends ModelItem> getChildren()
getChildren in interface ModelItemgetChildren in class AbstractModelItempublic String getAfterLoadScript()
public void setAfterLoadScript(String script)
public String getBeforeSaveScript()
public void setBeforeSaveScript(String script)
public PropertyExpansionContext getContext()
public DefaultWssContainer getWssContainer()
public OAuth2ProfileContainer getOAuth2ProfileContainer()
getOAuth2ProfileContainer in interface Projectpublic OAuth1ProfileContainer getOAuth1ProfileContainer()
getOAuth1ProfileContainer in interface Projectpublic void resolve(ResolveContext<?> context)
resolve in class AbstractWsdlModelItem<ProjectConfig>public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions in interface PropertyExpansionContainerprotected void addExternalDependencies(List<ExternalDependency> dependencies)
addExternalDependencies in class AbstractWsdlModelItem<ProjectConfig>public String getShadowPassword()
getShadowPassword in interface Projectpublic void setShadowPassword(String password)
setShadowPassword in interface Projectpublic String getHermesConfig()
public void setHermesConfig(String hermesConfigPath)
public WsdlProject.ProjectEncryptionStatus getEncryptionStatus()
public WsdlProject.ProjectEncryptionStatus setEncryptionStatus(WsdlProject.ProjectEncryptionStatus status)
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic SoapuiProjectDocumentConfig getProjectDocument()
public int getInterfaceCount(String type)
public List<AbstractInterface<?>> getInterfaces(String type)
public void importTestSuite(File file)
public WsdlInterface[] importWsdl(String url, boolean createRequests) throws SoapUIException
WsdlInterfaceFactory.importWsdl(WsdlProject, String, boolean)SoapUIExceptionpublic WsdlInterface[] importWsdl(String url, boolean createRequests, WsdlLoader wsdlLoader) throws SoapUIException
WsdlInterfaceFactory.importWsdl(WsdlProject, String, boolean, WsdlLoader)SoapUIExceptionpublic WsdlInterface[] importWsdl(String url, boolean createRequests, QName bindingName, WsdlLoader wsdlLoader) throws SoapUIException
WsdlInterfaceFactory.importWsdl(WsdlProject, String, boolean, QName, WsdlLoader)SoapUIExceptionpublic String getDefaultScriptLanguage()
public void setDefaultScriptLanguage(String id)
public int getIndexOfTestSuite(TestSuite testSuite)
getIndexOfTestSuite in interface Projectpublic String getBeforeRunScript()
public void setBeforeRunScript(String script)
public Object runBeforeRunScript(ProjectRunContext context, ProjectRunner runner) throws Exception
Exceptionpublic String getAfterRunScript()
public void setAfterRunScript(String script)
public Object runAfterRunScript(ProjectRunContext context, ProjectRunner runner) throws Exception
Exceptionpublic void addProjectRunListener(ProjectRunListener projectRunListener)
public void removeProjectRunListener(ProjectRunListener projectRunListener)
public WsdlProjectRunner run(StringToObjectMap context, boolean async)
run in interface TestRunnablepublic boolean isAbortOnError()
public void setAbortOnError(boolean arg0)
public long getTimeout()
public void setTimeout(long timeout)
public ProjectRunListener[] getProjectRunListeners()
public TestSuite.TestSuiteRunType getRunType()
public void setRunType(TestSuite.TestSuiteRunType runType)
public WsdlTestSuite moveTestSuite(int ix, int offset)
public void importMockService(File file)
public void addEnvironmentListener(EnvironmentListener listener)
public void removeEnvironmentListener(EnvironmentListener listener)
public boolean isFromNewerVersion()
public boolean isFromReadyApi()
Copyright © 2019. All Rights Reserved.