Class VariantDdnPath
- java.lang.Object
-
- org.parosproxy.paros.core.scanner.VariantDdnPath
-
- All Implemented Interfaces:
Variant
public class VariantDdnPath extends java.lang.Object implements Variant
Variant class used for URL path elements that are defined as Data Driven Nodes. For a URL like: http://www.example.com/aaa/bbb/ccc?ddd=eee&fff=ggg parameter position aaa 1 bbb 2 ccc 3 Given: https://www.example.com/en-US/container/item/itemA https://www.example.com/en-US/container/item/itemB Defined as: https://www.example.com/en-US/container/item/<<DDN1>> Test/inject <<DDN1>>
-
-
Constructor Summary
Constructors Constructor Description VariantDdnPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NameValuePair>
getParamList()
Gets the list of parameters handled by this variant.java.lang.String
getShortName()
Gets a short name of the Variantjava.lang.String
setEscapedParameter(HttpMessage msg, NameValuePair originalPair, java.lang.String name, java.lang.String value)
void
setMessage(HttpMessage msg)
java.lang.String
setParameter(HttpMessage msg, NameValuePair originalPair, java.lang.String name, java.lang.String value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.parosproxy.paros.core.scanner.Variant
getLeafName, getTreePath, setParameters
-
-
-
-
Method Detail
-
getShortName
public java.lang.String getShortName()
Description copied from interface:Variant
Gets a short name of the Variant- Specified by:
getShortName
in interfaceVariant
- Returns:
- a
String
the short name of the variant
-
setMessage
public void setMessage(HttpMessage msg)
- Specified by:
setMessage
in interfaceVariant
-
getParamList
public java.util.List<NameValuePair> getParamList()
Description copied from interface:Variant
Gets the list of parameters handled by this variant.- Specified by:
getParamList
in interfaceVariant
- Returns:
- a
List
containing the parameters
-
setParameter
public java.lang.String setParameter(HttpMessage msg, NameValuePair originalPair, java.lang.String name, java.lang.String value)
- Specified by:
setParameter
in interfaceVariant
-
setEscapedParameter
public java.lang.String setEscapedParameter(HttpMessage msg, NameValuePair originalPair, java.lang.String name, java.lang.String value)
- Specified by:
setEscapedParameter
in interfaceVariant
-
-