com.eviware.soapui.security.scan
Class MalformedXmlSecurityScan

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.model.support.AbstractAnimatableModelItem<com.eviware.soapui.config.ModelItemConfig>
          extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<com.eviware.soapui.config.SecurityScanConfig>
              extended by com.eviware.soapui.security.scan.AbstractSecurityScan
                  extended by com.eviware.soapui.security.scan.AbstractSecurityScanWithProperties
                      extended by com.eviware.soapui.security.scan.MalformedXmlSecurityScan
All Implemented Interfaces:
ModelItem, SecurityScan, XPathReferenceContainer, Assertable, ResponseAssertion, PropertyChangeNotifier

public class MalformedXmlSecurityScan
extends AbstractSecurityScanWithProperties


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.Assertable
Assertable.AssertionStatus
 
Field Summary
static java.lang.String NAME
           
static java.lang.String TYPE
           
 
Fields inherited from class com.eviware.soapui.security.scan.AbstractSecurityScanWithProperties
SECURITY_CHANGED_PARAMETERS
 
Fields inherited from class com.eviware.soapui.security.scan.AbstractSecurityScan
assertionsSupport
 
Fields inherited from interface com.eviware.soapui.model.security.SecurityScan
SECURITY_CHECK_RESPONSE_RESULT, SECURITY_SCAN_REQUEST_RESULT, STATUS_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Constructor Summary
MalformedXmlSecurityScan(TestStep testStep, com.eviware.soapui.config.SecurityScanConfig config, ModelItem parent, java.lang.String icon)
           
 
Method Summary
protected  void clear()
           
protected  void execute(SecurityTestRunner runner, TestStep testStep, SecurityTestRunContext context)
          should be implemented in every particular scan it executes one request, modified by securityScan if necessary and internally adds messages for logging to SecurityScanRequestResult
 javax.swing.JComponent getAdvancedSettingsPanel()
          Overide if SecurityScan needs advanced settings
 java.lang.String getConfigDescription()
           
 java.lang.String getConfigName()
           
 java.lang.String getHelpURL()
           
 java.lang.String getType()
          The type of this check
protected  boolean hasNext(TestStep testStep, SecurityTestRunContext context)
          checks if specific SecurityScan still has modifications left
protected  void initMalformedXmlConfig()
          Default malformed xml configuration
protected  java.util.Collection<? extends java.lang.String> mutateNode(XmlObjectTreeModel.XmlTreeNode node, java.lang.String xml)
           
protected  void mutateParameters(TestStep testStep, SecurityTestRunContext context)
           
 void release()
           
protected  StringToStringMap update(TestStep testStep, SecurityTestRunContext context)
           
 
Methods inherited from class com.eviware.soapui.security.scan.AbstractSecurityScanWithProperties
copyConfig, createMessageExchange, getParameterAt, getParameterByLabel, getParameterHolder, getXPathReferences, importParameter, setParameterHolder, updateSecurityConfig
 
Methods inherited from class com.eviware.soapui.security.scan.AbstractSecurityScan
addAssertion, addAssertionsListener, addPropertyChangeListener, addWsdlAssertion, assertResponse, cloneAssertion, getAssertableContent, getAssertableType, getAssertionAt, getAssertionByName, getAssertionCount, getAssertionList, getAssertions, getAssertionsSupport, getAssertionStatus, getComponent, getDefaultAssertableContent, getExecutionStrategy, getInterface, getModelItem, getOriginalResult, getRequest, getSecurityScanRequestResult, getSecurityScanResult, getSecurityStatus, getTestStep, initAssertions, isApplyForFailedStep, isConfigurable, isDisabled, isRunOnlyOnce, isSecurable, isSkipFurtherRunning, moveAssertion, removeAssertion, removeAssertionsListener, removePropertyChangeListener, reportSecurityScanException, run, setApplyForFailedTestStep, setDisabled, setExecutionStrategy, setRunOnlyOnce, setSecurityScanRequestResult, setSkipFurtherRunning, setTestStep
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemByName, resolve, setConfig, setDescription, setIcon, setName, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.model.security.SecurityScan
getConfig
 
Methods inherited from interface com.eviware.soapui.model.ModelItem
getChildren, getDescription, getIcon, getId, getName, getParent, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

MalformedXmlSecurityScan

public MalformedXmlSecurityScan(TestStep testStep,
                                com.eviware.soapui.config.SecurityScanConfig config,
                                ModelItem parent,
                                java.lang.String icon)
Method Detail

initMalformedXmlConfig

protected void initMalformedXmlConfig()
Default malformed xml configuration


execute

protected void execute(SecurityTestRunner runner,
                       TestStep testStep,
                       SecurityTestRunContext context)
Description copied from class: AbstractSecurityScan
should be implemented in every particular scan it executes one request, modified by securityScan if necessary and internally adds messages for logging to SecurityScanRequestResult

Specified by:
execute in class AbstractSecurityScan

update

protected StringToStringMap update(TestStep testStep,
                                   SecurityTestRunContext context)
                            throws org.apache.xmlbeans.XmlException,
                                   java.lang.Exception
Throws:
org.apache.xmlbeans.XmlException
java.lang.Exception

mutateParameters

protected void mutateParameters(TestStep testStep,
                                SecurityTestRunContext context)
                         throws org.apache.xmlbeans.XmlException,
                                java.io.IOException
Throws:
org.apache.xmlbeans.XmlException
java.io.IOException

mutateNode

protected java.util.Collection<? extends java.lang.String> mutateNode(XmlObjectTreeModel.XmlTreeNode node,
                                                                      java.lang.String xml)
                                                               throws java.io.IOException
Throws:
java.io.IOException

getConfigDescription

public java.lang.String getConfigDescription()
Specified by:
getConfigDescription in interface SecurityScan
Specified by:
getConfigDescription in class AbstractSecurityScan

getConfigName

public java.lang.String getConfigName()
Specified by:
getConfigName in interface SecurityScan
Specified by:
getConfigName in class AbstractSecurityScan

getHelpURL

public java.lang.String getHelpURL()
Specified by:
getHelpURL in interface SecurityScan
Specified by:
getHelpURL in class AbstractSecurityScan

getType

public java.lang.String getType()
Description copied from interface: SecurityScan
The type of this check

Specified by:
getType in interface SecurityScan
Specified by:
getType in class AbstractSecurityScan
Returns:

hasNext

protected boolean hasNext(TestStep testStep,
                          SecurityTestRunContext context)
Description copied from class: AbstractSecurityScan
checks if specific SecurityScan still has modifications left

Specified by:
hasNext in class AbstractSecurityScan

clear

protected void clear()
Overrides:
clear in class AbstractSecurityScan

getAdvancedSettingsPanel

public javax.swing.JComponent getAdvancedSettingsPanel()
Description copied from class: AbstractSecurityScan
Overide if SecurityScan needs advanced settings

Specified by:
getAdvancedSettingsPanel in interface SecurityScan
Overrides:
getAdvancedSettingsPanel in class AbstractSecurityScan
Returns:

release

public void release()
Specified by:
release in interface SecurityScan
Overrides:
release in class AbstractSecurityScanWithProperties


Copyright © 2005-2011 eviware.com. All Rights Reserved.