@Override protected AbstractJsseEndpoint<S,?> getEndpoint() { // Over-ridden to add cast return (AbstractJsseEndpoint<S,?>) super.getEndpoint(); }
/** * Set the maximum number of Keep-Alive requests to allow. * This is to safeguard from DoS attacks. Setting to a negative * value disables the limit. * * @param mkar The new maximum number of Keep-Alive requests allowed */ public void setMaxKeepAliveRequests(int mkar) { getEndpoint().setMaxKeepAliveRequests(mkar); }
public String getDefaultSSLHostConfigName() { return getEndpoint().getDefaultSSLHostConfigName(); } public void setDefaultSSLHostConfigName(String defaultSSLHostConfigName) {
/** * @return The maximum number of requests which can be performed over a * keep-alive connection. The default is the same as for Apache HTTP * Server (100). */ public int getMaxKeepAliveRequests() { return getEndpoint().getMaxKeepAliveRequests(); } /**
@Override public void addSslHostConfig(SSLHostConfig sslHostConfig) { getEndpoint().addSslHostConfig(sslHostConfig); }
public void reloadSslHostConfig(String hostName) { getEndpoint().reloadSslHostConfig(hostName); }
@Override public SSLHostConfig[] findSslHostConfigs() { return getEndpoint().findSslHostConfigs(); }
public void setSSLEnabled(boolean SSLEnabled) { getEndpoint().setSSLEnabled(SSLEnabled); }
public void reloadSslHostConfigs() { getEndpoint().reloadSslHostConfigs(); }
public boolean isSSLEnabled() { return getEndpoint().isSSLEnabled();} public void setSSLEnabled(boolean SSLEnabled) {
public boolean getUseSendfile() { return getEndpoint().getUseSendfile(); } public void setUseSendfile(boolean useSendfile) { getEndpoint().setUseSendfile(useSendfile); }
public void setUseSendfile(boolean useSendfile) { getEndpoint().setUseSendfile(useSendfile); }
public void setDefaultSSLHostConfigName(String defaultSSLHostConfigName) { getEndpoint().setDefaultSSLHostConfigName(defaultSSLHostConfigName); if (defaultSSLHostConfig != null) { defaultSSLHostConfig.setHostName(defaultSSLHostConfigName); } }
public AbstractHttp11Protocol(AbstractEndpoint<S,?> endpoint) { super(endpoint); setConnectionTimeout(Constants.DEFAULT_CONNECTION_TIMEOUT); ConnectionHandler<S> cHandler = new ConnectionHandler<>(this); setHandler(cHandler); getEndpoint().setHandler(cHandler); }
private void configureUpgradeProtocol(UpgradeProtocol upgradeProtocol) { String httpUpgradeName = upgradeProtocol.getHttpUpgradeName(getEndpoint().isSSLEnabled()); boolean httpUpgradeConfigured = false; if (httpUpgradeName != null && httpUpgradeName.length() > 0) { if (getEndpoint().isAlpnSupported()) { negotiatedProtocols.put(alpnName, upgradeProtocol); getEndpoint().addNegotiatedProtocol(alpnName); getLog().info(sm.getString("abstractHttp11Protocol.alpnConfigured", getName(), alpnName));
private void registerDefaultSSLHostConfig() { if (defaultSSLHostConfig == null) { for (SSLHostConfig sslHostConfig : findSslHostConfigs()) { if (getDefaultSSLHostConfigName().equals(sslHostConfig.getHostName())) { defaultSSLHostConfig = sslHostConfig; break; } } if (defaultSSLHostConfig == null) { defaultSSLHostConfig = new SSLHostConfig(); defaultSSLHostConfig.setHostName(getDefaultSSLHostConfigName()); getEndpoint().addSslHostConfig(defaultSSLHostConfig); } } }