com.codemagi.burp.parser.ParameterComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of burp-suite-utils Show documentation
Show all versions of burp-suite-utils Show documentation
The Burp Suite Utils project provides developers with APIs for building Burp Suite Extensions.
package com.codemagi.burp.parser;
import java.util.Map;
/**
* Sorts HTTP parameters by character code. Sorting is case sensitive, i.e. parameter 'UserName' comes BEFORE 'maxItems'.
*
* @author August Detlefsen [augustd at codemagi dot com]
*/
public class ParameterComparator implements java.util.Comparator {
@Override
public int compare(Map.Entry t1, Map.Entry t2) {
String key1 = (String)t1.getKey();
String key2 = (String)t2.getKey();
return key1.compareTo(key2);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy