All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codemagi.burp.parser.ParameterComparator Maven / Gradle / Ivy

Go to download

The Burp Suite Utils project provides developers with APIs for building Burp Suite Extensions.

There is a newer version: 1.2.5
Show newest version
package com.codemagi.burp.parser;

import burp.impl.Parameter;

/**
 * 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(Parameter t1, Parameter t2) {
	
	String key1 = (String)t1.getName();
	String key2 = (String)t2.getName();
	
	return key1.compareTo(key2);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy