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_ID
DESCRIPTION_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, setPropertyValue
dependsOn, getConfig, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
public 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.XmlException
IOException
SoapUIException
public WsdlProject(String path) throws org.apache.xmlbeans.XmlException, IOException, SoapUIException
org.apache.xmlbeans.XmlException
IOException
SoapUIException
public 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
SoapUIException
public void loadProject(InputStream inputStream)
public SoapuiProjectDocumentConfig loadProjectFromInputStream(InputStream inputStream) throws org.apache.xmlbeans.XmlException, IOException, GeneralSecurityException
org.apache.xmlbeans.XmlException
IOException
GeneralSecurityException
public 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
- IOException
GeneralSecurityException
public void afterLoad()
afterLoad
in class AbstractWsdlModelItem<ProjectConfig>
protected void setProjectRoot(String path)
public String getResourceRoot()
getResourceRoot
in interface Project
public void setResourceRoot(String resourceRoot)
public ImageIcon getIcon()
getIcon
in interface ModelItem
getIcon
in class AbstractWsdlModelItem<ProjectConfig>
public String getDescription()
getDescription
in interface ModelItem
getDescription
in class AbstractWsdlModelItem<ProjectConfig>
public WorkspaceImpl getWorkspace()
getWorkspace
in interface Project
public AbstractInterface<?> getInterfaceAt(int index)
getInterfaceAt
in interface Project
public AbstractInterface<?> getInterfaceByName(String interfaceName)
getInterfaceByName
in interface Project
public AbstractInterface<?> getInterfaceByTechnicalId(String technicalId)
public int getInterfaceCount()
getInterfaceCount
in interface Project
public SaveStatus save() throws IOException
save
in interface Project
IOException
public SaveStatus save(String folder) throws IOException
IOException
protected boolean shouldCreateBackup(File projectFile)
protected String createProjectFileName()
protected boolean projectFileModified(File projectFile)
public SaveStatus saveBackup() throws IOException
IOException
public SaveStatus saveIn(File projectFile) throws IOException
IOException
public void beforeSave()
beforeSave
in class AbstractWsdlModelItem<ProjectConfig>
protected void createBackup(File projectFile) throws IOException
IOException
protected void removeDefinitionCaches(SoapuiProjectDocumentConfig config)
public AbstractInterface<?> addNewInterface(String name, String type)
public void addProjectListener(ProjectListener listener)
addProjectListener
in interface Project
public void removeProjectListener(ProjectListener listener)
removeProjectListener
in interface Project
public 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 Project
public int getTestSuiteCount()
getTestSuiteCount
in interface Project
public WsdlTestSuite getTestSuiteAt(int index)
getTestSuiteAt
in interface Project
public WsdlTestSuite getTestSuiteByName(String testSuiteName)
getTestSuiteByName
in interface Project
public TestSuite getTestSuiteById(UUID testSuiteId)
getTestSuiteById
in interface Project
public WsdlTestSuite addNewTestSuite(String name)
addNewTestSuite
in interface Project
public boolean isCacheDefinitions()
public void setCacheDefinitions(boolean cacheDefinitions)
public SaveStatus saveAs(String fileName) throws IOException
IOException
public void release()
release
in interface Project
release
in interface Releasable
release
in class AbstractWsdlModelItem<ProjectConfig>
public WsdlMockService addNewMockService(String name)
addNewMockService
in interface Project
public void addWsdlMockService(WsdlMockService mockService)
public RestMockService addNewRestMockService(String name)
addNewRestMockService
in interface Project
public void addRestMockService(RestMockService mockService)
public WsdlMockService getMockServiceAt(int index)
getMockServiceAt
in interface Project
public WsdlMockService getMockServiceByName(String mockServiceName)
getMockServiceByName
in interface Project
public int getMockServiceCount()
getMockServiceCount
in interface Project
public RestMockService getRestMockServiceAt(int index)
getRestMockServiceAt
in interface Project
public RestMockService getRestMockServiceByName(String mockServiceName)
getRestMockServiceByName
in interface Project
public int getRestMockServiceCount()
getRestMockServiceCount
in interface Project
public void removeMockService(MockService mockService)
removeMockService
in interface Project
public List<TestSuite> getTestSuiteList()
getTestSuiteList
in interface Project
public List<WsdlMockService> getMockServiceList()
getMockServiceList
in interface Project
public List<RestMockService> getRestMockServiceList()
getRestMockServiceList
in interface Project
public List<Interface> getInterfaceList()
getInterfaceList
in interface Project
public Map<String,MockService> getMockServices()
public void reload() throws SoapUIException
SoapUIException
public void reload(String path) throws SoapUIException
SoapUIException
public 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 Project
public List<? extends ModelItem> getChildren()
getChildren
in interface ModelItem
getChildren
in class AbstractModelItem
public 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 Project
public OAuth1ProfileContainer getOAuth1ProfileContainer()
getOAuth1ProfileContainer
in interface Project
public void resolve(ResolveContext<?> context)
resolve
in class AbstractWsdlModelItem<ProjectConfig>
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
protected void addExternalDependencies(List<ExternalDependency> dependencies)
addExternalDependencies
in class AbstractWsdlModelItem<ProjectConfig>
public String getShadowPassword()
getShadowPassword
in interface Project
public void setShadowPassword(String password)
setShadowPassword
in interface Project
public 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 PropertyChangeListener
public 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)
SoapUIException
public WsdlInterface[] importWsdl(String url, boolean createRequests, WsdlLoader wsdlLoader) throws SoapUIException
WsdlInterfaceFactory.importWsdl(WsdlProject, String, boolean, WsdlLoader)
SoapUIException
public WsdlInterface[] importWsdl(String url, boolean createRequests, QName bindingName, WsdlLoader wsdlLoader) throws SoapUIException
WsdlInterfaceFactory.importWsdl(WsdlProject, String, boolean, QName, WsdlLoader)
SoapUIException
public String getDefaultScriptLanguage()
public void setDefaultScriptLanguage(String id)
public int getIndexOfTestSuite(TestSuite testSuite)
getIndexOfTestSuite
in interface Project
public String getBeforeRunScript()
public void setBeforeRunScript(String script)
public Object runBeforeRunScript(ProjectRunContext context, ProjectRunner runner) throws Exception
Exception
public String getAfterRunScript()
public void setAfterRunScript(String script)
public Object runAfterRunScript(ProjectRunContext context, ProjectRunner runner) throws Exception
Exception
public void addProjectRunListener(ProjectRunListener projectRunListener)
public void removeProjectRunListener(ProjectRunListener projectRunListener)
public WsdlProjectRunner run(StringToObjectMap context, boolean async)
run
in interface TestRunnable
public 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.