Class StructuralNodeModifier
- java.lang.Object
-
- org.zaproxy.zap.utils.Enableable
-
- org.zaproxy.zap.model.StructuralNodeModifier
-
- All Implemented Interfaces:
java.lang.Cloneable
,EnableableInterface
public class StructuralNodeModifier extends Enableable implements java.lang.Cloneable
Represents a rule for modifying the structure of an app as it is represented in the Sites treeData driven nodes are nodes that represent URL path elements that come from a database For example with http://www.example.com/a/b/c we normally assume that 'a', 'b' and 'c' are part of the structure of the application. However if 'b' is actually a value retrieved from a db then we should treat all such nodes as the same, so: http://www.example.com/a/b/c http://www.example.com/a/ddd/c http://www.example.com/a/eee/c are the same as far as the application structure is concerned - theres no point attacking all 3 as the same code will be behind them.
Structural parameters are parameters (as opposed to URL path elements) that actually define part of the structure of an app. These are most commonly found in 'single page apps' where: http://www.example.com/a/b?page=c http://www.example.com/a/b?page=d http://www.example.com/a/b?page=e all represent different pages with different functionality. In this case the 'page' parameter should be treated as being 'structural' rather than data
- Since:
- 2.4.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StructuralNodeModifier.Type
-
Constructor Summary
Constructors Constructor Description StructuralNodeModifier(java.lang.String config)
StructuralNodeModifier(StructuralNodeModifier.Type type, java.util.regex.Pattern pattern, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructuralNodeModifier
clone()
java.lang.String
getConfig()
java.lang.String
getName()
java.util.regex.Pattern
getPattern()
StructuralNodeModifier.Type
getType()
void
setName(java.lang.String name)
void
setPattern(java.util.regex.Pattern pattern)
-
Methods inherited from class org.zaproxy.zap.utils.Enableable
equals, hashCode, isEnabled, setEnabled
-
-
-
-
Constructor Detail
-
StructuralNodeModifier
public StructuralNodeModifier(StructuralNodeModifier.Type type, java.util.regex.Pattern pattern, java.lang.String name)
-
StructuralNodeModifier
public StructuralNodeModifier(java.lang.String config)
-
-
Method Detail
-
getType
public StructuralNodeModifier.Type getType()
-
getPattern
public java.util.regex.Pattern getPattern()
-
setPattern
public void setPattern(java.util.regex.Pattern pattern)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
clone
public StructuralNodeModifier clone()
- Overrides:
clone
in classjava.lang.Object
-
getConfig
public java.lang.String getConfig()
-
-