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

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

Go to download

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

The newest version!
package com.codemagi.burp.parser;

import java.util.Map;

/**
 * Sorts HTTP headers by lower case character code.
 * 
 * @author August Detlefsen [augustd at codemagi dot com]
 */
public class HeaderComparator 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.toLowerCase().compareTo(key2.toLowerCase());
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy