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

tclisten.autoconfigure.HttpProtocol Maven / Gradle / Ivy

/*
 * 
 * Copyright (c) 2016 CWIE, LLC
 * 
 * This source is subject to the [] License.  Please see License.txt file
 * for more information.  All other rights reserved.
 *
 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF
 * ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
 * PARTICULAR PURPOSE.
 * 
 * John Anderson
 * [email protected]
 * Aug 4, 2016
 * 
 */
package tclisten.autoconfigure;

/**
 * @author John Anderson
 *
 */
public enum HttpProtocol {
	DEFAULT("HTTP/1.1"),
	BIO("Http11Protocol"),
	NIO("Http11NioProtocol"),
	NIO2("Http11Nio2Protocol"),
	APR("Http11AprProtocol");
	
	private final String protocol;
	
	private HttpProtocol(final String protocol){
		this.protocol = protocol;
	}

	/* (non-Javadoc)
	 * @see java.lang.Enum#toString()
	 */
	@Override
	public String toString() {
		if(this == HttpProtocol.DEFAULT)
			return this.protocol;
		return "org.apache.coyote.http11." + this.protocol;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy