*/
package org.apache.coyote;
+import java.net.InetAddress;
import java.util.HashMap;
import java.util.Iterator;
import java.util.concurrent.Executor;
public Adapter getAdapter() { return adapter; }
+ /**
+ * The maximum number of idle processors that will be retained in the cache
+ * and re-used with a subsequent request. The default is -1, unlimited,
+ * although in that case there will never be more Processor objects than
+ * there are threads in the associated thread pool.
+ */
+ protected int processorCache = -1;
+ public int getProcessorCache() { return this.processorCache; }
+ public void setProcessorCache(int processorCache) {
+ this.processorCache = processorCache;
+ }
+
+
// ---------------------- Properties that are passed through to the EndPoint
@Override
public void setSoLinger(int soLinger) { endpoint.setSoLinger(soLinger); }
- // ------------------------ Properties that are made available as attributes
- // -------------------------------------(and passed through to the EndPoint)
+ // ---------------------- Properties that are passed through to the EndPoint
+ // ------------------------------------ and are made available as attributes
+
+ public InetAddress getAddress() { return endpoint.getAddress(); }
+ public void setAddress(InetAddress ia) {
+ endpoint.setAddress( ia );
+ setAttribute("address", "" + ia);
+ }
+
-
-
// -------------------------------------------------------- Abstract methods
/**
* Concrete implementations need to provide access to their logger to be
*/
package org.apache.coyote.ajp;
-import java.net.InetAddress;
import java.net.URLEncoder;
import javax.management.MBeanServer;
return ("ajp-" + encodedAddr + endpoint.getPort());
}
- /**
- * Processor cache.
- */
- protected int processorCache = -1;
- public int getProcessorCache() { return this.processorCache; }
- public void setProcessorCache(int processorCache) { this.processorCache = processorCache; }
-
-
- public InetAddress getAddress() { return endpoint.getAddress(); }
- public void setAddress(InetAddress ia) { endpoint.setAddress(ia); }
-
public int getSoTimeout() { return endpoint.getSoTimeout(); }
public void setSoTimeout(int soTimeout) { endpoint.setSoTimeout(soTimeout); }
*/
package org.apache.coyote.http11;
-import java.net.InetAddress;
import java.net.URLEncoder;
import javax.management.MBeanServer;
protected SSLImplementation sslImplementation = null;
- public InetAddress getAddress() { return endpoint.getAddress(); }
- public void setAddress(InetAddress ia) {
- endpoint.setAddress( ia );
- setAttribute("address", "" + ia);
- }
-
public String getName() {
String encodedAddr = "";
if (getAddress() != null) {
setAttribute("secure", "" + b);
}
- /**
- * Processor cache.
- */
- private int processorCache;
- public int getProcessorCache() { return this.processorCache; }
- public void setProcessorCache(int processorCache) { this.processorCache = processorCache; }
private int socketBuffer = 9000;
public int getSocketBuffer() { return socketBuffer; }