
package org.huihoo.willow;
/*
 * Created on 2004-6-10
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */

/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public interface NamingProvider extends Provider
{
	/**
	 * Return the "enable DNS lookups" flag.
	 */
	public boolean getEnableLookups();

	/**
	 * Set the "enable DNS lookups" flag.
	 *
	 * @param enableLookups The new "enable DNS lookups" flag value
	 */
	public void setEnableLookups(boolean enableLookups);
	
	/**
	 * Return the port number to which this provider binded
	 * 
	 *  Default value is 2126.
	 */
	public int getPort();

	/**
	 * Set the listen port number.
	 *
	 * @param port The binded port number
	 */
	public void setPort(int port);
	
	/**
	 * Return the connection linger for this Provider.
	 */
	public int getConnectionLinger();

	/**
	 * Set the connection linger for this Provider.
	 *
	 * @param count The new connection linge
	 */
	public void setConnectionLinger(int connectionLinger);

	/**
	 * Return the connection timeout for this Provider.
	 */
	public int getConnectionTimeout();

	/**
	 * Set the connection timeout for this Provider.
	 *
	 * @param count The new connection timeout
	 */
	public void setConnectionTimeout(int connectionTimeout);

	/**
	 * Return the accept count for this Provider.
	 */
	public int getAcceptCount();

	/**
	 * Set the accept count for this Provider.
	 *
	 * @param count The new accept count
	 */
	public void setAcceptCount(int count);

	/**
	 * Return the bind IP address for this Provider.
	 */
	public String getAddress();

	/**
	 * Set the bind IP address for this Provider.
	 *
	 * @param address The bind IP address
	 */
	public void setAddress(String address);

	/**
	 * Return the TCP no delay flag value.
	 */
	public boolean getTcpNoDelay();

	/**
	 * Set the TCP no delay flag which will be set on the socket after
	 * accepting a connection.
	 *
	 * @param tcpNoDelay The new TCP no delay flag
	 */
	public void setTcpNoDelay(boolean tcpNoDelay);
	
		/**
		 * Return the scheme that will be assigned to requests received
		 * through this Provider.  Default value is "workflow".
		 */
		public String getScheme();


		/**
		 * Set the scheme that will be assigned to requests received through
		 * this Provider.
		 *
		 * @param scheme The new scheme
		 */
		public void setScheme(String scheme);
}
