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

org.owasp.jbrofuzz.headers.HeaderTreeNode Maven / Gradle / Ivy

/**
 * JbroFuzz 2.5
 *
 * JBroFuzz - A stateless network protocol fuzzer for web applications.
 * 
 * Copyright (C) 2007 - 2010 [email protected]
 *
 * This file is part of JBroFuzz.
 * 
 * JBroFuzz is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * JBroFuzz is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with JBroFuzz.  If not, see .
 * Alternatively, write to the Free Software Foundation, Inc., 51 
 * Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 * Verbatim copying and distribution of this entire program file is 
 * permitted in any medium without royalty provided this notice 
 * is preserved. 
 * 
 */
package org.owasp.jbrofuzz.headers;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * 
 * @author [email protected]
 */
class HeaderTreeNode extends DefaultMutableTreeNode {

	private static final long serialVersionUID = -2215677803093884221L;
	
	private final boolean nodeIsDirectory;

	protected HeaderTreeNode(final Object myObject) {
		super(myObject);
		nodeIsDirectory = false;
	}

// TODO UCdetector: Remove unused code: 
// 	public HeaderTreeNode(final Object myObject, final boolean isDirectory) {
// 		super(myObject);
// 		nodeIsDirectory = isDirectory;
// 	}

	public boolean isDirectory() {
		return nodeIsDirectory;
	}

// TODO UCdetector: Remove unused code: 
// 	public void setAsDirectory() {
// 		nodeIsDirectory = true;
// 	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy