Methods Summary |
---|
public void | destroy()
if(log.isInfoEnabled())
log.info(sm.getString("http11protocol.stop", getName()));
endpoint.destroy();
if( tpOname!=null )
Registry.getRegistry(null, null).unregisterComponent(tpOname);
if( rgOname != null )
Registry.getRegistry(null, null).unregisterComponent(rgOname);
|
public org.apache.coyote.Adapter | getAdapter() return adapter;
|
public java.net.InetAddress | getAddress() return endpoint.getAddress();
|
public java.lang.Object | getAttribute(java.lang.String key)
if( log.isTraceEnabled())
log.trace(sm.getString("http11protocol.getattribute", key));
return attributes.get(key);
|
public java.util.Iterator | getAttributeNames()
return attributes.keySet().iterator();
|
public int | getBacklog() return endpoint.getBacklog();
|
public java.lang.String | getCompressableMimeType()
return compressableMimeTypes;
|
public java.lang.String | getCompression()
return compression;
|
public int | getCompressionMinSize()
return compressionMinSize;
|
public boolean | getDisableUploadTimeout()
return disableUploadTimeout;
|
public java.lang.String | getDomain()
return domain;
|
public java.util.concurrent.Executor | getExecutor() return endpoint.getExecutor();
|
public boolean | getKeepAlive()Return the Keep-Alive policy for the connection.
return ((maxKeepAliveRequests != 0) && (maxKeepAliveRequests != 1));
|
public int | getKeepAliveTimeout()The number of seconds Tomcat will wait for a subsequent request
before closing the connection. return endpoint.getKeepAliveTimeout();
|
public int | getMaxHttpHeaderSize()
return maxHttpHeaderSize;
|
public int | getMaxKeepAliveRequests()
return maxKeepAliveRequests;
|
public int | getMaxSavePostSize()
return maxSavePostSize;
|
public int | getMaxThreads() return endpoint.getMaxThreads();
|
public java.lang.String | getName()
String encodedAddr = "";
if (getAddress() != null) {
encodedAddr = "" + getAddress();
if (encodedAddr.startsWith("/"))
encodedAddr = encodedAddr.substring(1);
encodedAddr = URLEncoder.encode(encodedAddr) + "-";
}
return ("http-" + encodedAddr + endpoint.getPort());
|
public java.lang.String | getNoCompressionUserAgents()
return noCompressionUserAgents;
|
public javax.management.ObjectName | getObjectName()
return oname;
|
public int | getPollTime() return endpoint.getPollTime();
|
public int | getPollerSize() return endpoint.getPollerSize();
|
public int | getPort() return endpoint.getPort();
|
public int | getProcessorCache()
return this.processorCache;
|
public java.lang.String | getProperty(java.lang.String name)Get a property
return (String)getAttribute(name);
|
public java.lang.String | getProtocol()
return getProperty("protocol");
|
public java.lang.String | getRestrictedUserAgents()
return restrictedUserAgents;
|
public java.lang.String | getSSLCACertificateFile()SSL CA certificate file. return endpoint.getSSLCACertificateFile();
|
public java.lang.String | getSSLCACertificatePath()SSL CA certificate path. return endpoint.getSSLCACertificatePath();
|
public java.lang.String | getSSLCARevocationFile()SSL CA revocation file. return endpoint.getSSLCARevocationFile();
|
public java.lang.String | getSSLCARevocationPath()SSL CA revocation path. return endpoint.getSSLCARevocationPath();
|
public java.lang.String | getSSLCertificateChainFile()SSL certificate chain file. return endpoint.getSSLCertificateChainFile();
|
public java.lang.String | getSSLCertificateFile()SSL certificate file. return endpoint.getSSLCertificateFile();
|
public java.lang.String | getSSLCertificateKeyFile()SSL certificate key file. return endpoint.getSSLCertificateKeyFile();
|
public java.lang.String | getSSLCipherSuite()SSL cipher suite. return endpoint.getSSLCipherSuite();
|
public java.lang.String | getSSLPassword()SSL password (if a cert is encrypted, and no password has been provided, a callback
will ask for a password). return endpoint.getSSLPassword();
|
public java.lang.String | getSSLProtocol()SSL protocol. return endpoint.getSSLProtocol();
|
public java.lang.String | getSSLVerifyClient()SSL verify client. return endpoint.getSSLVerifyClient();
|
public int | getSSLVerifyDepth()SSL verify depth. return endpoint.getSSLVerifyDepth();
|
public boolean | getSecure() return secure;
|
public int | getSendfileSize() return endpoint.getSendfileSize();
|
public java.lang.String | getServer() return server;
|
public int | getSoLinger() return endpoint.getSoLinger();
|
public int | getSoTimeout() return endpoint.getSoTimeout();
|
public int | getSocketBuffer()
return socketBuffer;
|
public boolean | getTcpNoDelay() return endpoint.getTcpNoDelay();
|
public int | getThreadPriority() return endpoint.getThreadPriority();
|
public int | getTimeout()
return timeout;
|
public boolean | getUseSendfile() return endpoint.getUseSendfile();
|
public void | init()Start the protocol
endpoint.setName(getName());
endpoint.setHandler(cHandler);
try {
endpoint.init();
} catch (Exception ex) {
log.error(sm.getString("http11protocol.endpoint.initerror"), ex);
throw ex;
}
if(log.isInfoEnabled())
log.info(sm.getString("http11protocol.init", getName()));
|
public boolean | isSSLEnabled()SSL engine. return endpoint.isSSLEnabled();
|
public void | pause()
try {
endpoint.pause();
} catch (Exception ex) {
log.error(sm.getString("http11protocol.endpoint.pauseerror"), ex);
throw ex;
}
if(log.isInfoEnabled())
log.info(sm.getString("http11protocol.pause", getName()));
|
public void | postDeregister()
|
public void | postRegister(java.lang.Boolean registrationDone)
|
public void | preDeregister()
|
public javax.management.ObjectName | preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
oname=name;
mserver=server;
domain=name.getDomain();
return name;
|
public void | resume()
try {
endpoint.resume();
} catch (Exception ex) {
log.error(sm.getString("http11protocol.endpoint.resumeerror"), ex);
throw ex;
}
if(log.isInfoEnabled())
log.info(sm.getString("http11protocol.resume", getName()));
|
public void | setAdapter(org.apache.coyote.Adapter adapter) this.adapter = adapter;
|
public void | setAddress(java.net.InetAddress ia) endpoint.setAddress(ia);
|
public void | setAttribute(java.lang.String name, java.lang.Object value)Pass config info
if( log.isTraceEnabled())
log.trace(sm.getString("http11protocol.setattribute", name, value));
attributes.put(name, value);
|
public void | setBacklog(int backlog) endpoint.setBacklog(backlog);
|
public void | setCompressableMimeType(java.lang.String valueS) compressableMimeTypes = valueS;
|
public void | setCompression(java.lang.String valueS) compression = valueS;
|
public void | setCompressionMinSize(int valueI) compressionMinSize = valueI;
|
public void | setDisableUploadTimeout(boolean isDisabled) disableUploadTimeout = isDisabled;
|
public void | setExecutor(java.util.concurrent.Executor executor) endpoint.setExecutor(executor);
|
public void | setKeepAlive(boolean keepAlive)Set the keep-alive policy for this connection.
if (!keepAlive) {
setMaxKeepAliveRequests(1);
}
|
public void | setKeepAliveTimeout(int timeout) endpoint.setKeepAliveTimeout(timeout);
|
public void | setMaxHttpHeaderSize(int valueI) maxHttpHeaderSize = valueI;
|
public void | setMaxKeepAliveRequests(int mkar) maxKeepAliveRequests = mkar;
|
public void | setMaxSavePostSize(int valueI) maxSavePostSize = valueI;
|
public void | setMaxThreads(int maxThreads) endpoint.setMaxThreads(maxThreads);
|
public void | setNoCompressionUserAgents(java.lang.String valueS) noCompressionUserAgents = valueS;
|
public void | setPollTime(int pollTime) endpoint.setPollTime(pollTime);
|
public void | setPollerSize(int pollerSize) endpoint.setPollerSize(pollerSize);
|
public void | setPort(int port) endpoint.setPort(port);
|
public void | setProcessorCache(int processorCache) this.processorCache = processorCache;
|
public void | setProperty(java.lang.String name, java.lang.String value)Set a property.
setAttribute(name, value);
|
public void | setProtocol(java.lang.String k)
setSecure(true);
setAttribute("protocol", k);
|
public void | setRestrictedUserAgents(java.lang.String valueS) restrictedUserAgents = valueS;
|
public void | setSSLCACertificateFile(java.lang.String SSLCACertificateFile) endpoint.setSSLCACertificateFile(SSLCACertificateFile);
|
public void | setSSLCACertificatePath(java.lang.String SSLCACertificatePath) endpoint.setSSLCACertificatePath(SSLCACertificatePath);
|
public void | setSSLCARevocationFile(java.lang.String SSLCARevocationFile) endpoint.setSSLCARevocationFile(SSLCARevocationFile);
|
public void | setSSLCARevocationPath(java.lang.String SSLCARevocationPath) endpoint.setSSLCARevocationPath(SSLCARevocationPath);
|
public void | setSSLCertificateChainFile(java.lang.String SSLCertificateChainFile) endpoint.setSSLCertificateChainFile(SSLCertificateChainFile);
|
public void | setSSLCertificateFile(java.lang.String SSLCertificateFile) endpoint.setSSLCertificateFile(SSLCertificateFile);
|
public void | setSSLCertificateKeyFile(java.lang.String SSLCertificateKeyFile) endpoint.setSSLCertificateKeyFile(SSLCertificateKeyFile);
|
public void | setSSLCipherSuite(java.lang.String SSLCipherSuite) endpoint.setSSLCipherSuite(SSLCipherSuite);
|
public void | setSSLEnabled(boolean SSLEnabled) endpoint.setSSLEnabled(SSLEnabled);
|
public void | setSSLPassword(java.lang.String SSLPassword) endpoint.setSSLPassword(SSLPassword);
|
public void | setSSLProtocol(java.lang.String SSLProtocol) endpoint.setSSLProtocol(SSLProtocol);
|
public void | setSSLVerifyClient(java.lang.String SSLVerifyClient) endpoint.setSSLVerifyClient(SSLVerifyClient);
|
public void | setSSLVerifyDepth(int SSLVerifyDepth) endpoint.setSSLVerifyDepth(SSLVerifyDepth);
|
public void | setSecure(boolean b) secure = b;
|
public void | setSendfileSize(int sendfileSize) endpoint.setSendfileSize(sendfileSize);
|
public void | setServer(java.lang.String server) this.server = server;
|
public void | setSoLinger(int soLinger) endpoint.setSoLinger(soLinger);
|
public void | setSoTimeout(int soTimeout) endpoint.setSoTimeout(soTimeout);
|
public void | setSocketBuffer(int socketBuffer) this.socketBuffer = socketBuffer;
|
public void | setTcpNoDelay(boolean tcpNoDelay) endpoint.setTcpNoDelay(tcpNoDelay);
|
public void | setThreadPriority(int threadPriority) endpoint.setThreadPriority(threadPriority);
|
public void | setTimeout(int timeout) this.timeout = timeout;
|
public void | setUseSendfile(boolean useSendfile) endpoint.setUseSendfile(useSendfile);
|
public void | start()
if( this.domain != null ) {
try {
tpOname=new ObjectName
(domain + ":" + "type=ThreadPool,name=" + getName());
Registry.getRegistry(null, null)
.registerComponent(endpoint, tpOname, null );
} catch (Exception e) {
log.error("Can't register threadpool" );
}
rgOname=new ObjectName
(domain + ":type=GlobalRequestProcessor,name=" + getName());
Registry.getRegistry(null, null).registerComponent
( cHandler.global, rgOname, null );
}
try {
endpoint.start();
} catch (Exception ex) {
log.error(sm.getString("http11protocol.endpoint.starterror"), ex);
throw ex;
}
if(log.isInfoEnabled())
log.info(sm.getString("http11protocol.start", getName()));
|