| | |
| | | public void initializeConnectionHandler(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | enabled = true; |
| | | |
| | | configEntryDN = configEntry.getDN(); |
| | |
| | | public void finalizeConnectionHandler(String finalizeReason, |
| | | boolean closeConnections) |
| | | { |
| | | |
| | | shutdownRequested = true; |
| | | |
| | | DirectoryServer.deregisterConfigurableComponent(this); |
| | |
| | | */ |
| | | public String getConnectionHandlerName() |
| | | { |
| | | |
| | | return handlerName; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getProtocol() |
| | | { |
| | | |
| | | return protocol; |
| | | } |
| | | |
| | |
| | | */ |
| | | public Collection<HostPort> getListeners() |
| | | { |
| | | |
| | | return listeners; |
| | | } |
| | | |
| | |
| | | */ |
| | | public Collection<ClientConnection> getClientConnections() |
| | | { |
| | | |
| | | LinkedList<ClientConnection> connectionList = |
| | | new LinkedList<ClientConnection>(); |
| | | for (LDAPRequestHandler requestHandler : requestHandlers) |
| | |
| | | */ |
| | | public int getListenPort() |
| | | { |
| | | |
| | | return listenPort; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void run() |
| | | { |
| | | |
| | | connHandlerThread = Thread.currentThread(); |
| | | setName(handlerName); |
| | | |
| | |
| | | */ |
| | | private void cleanUpSelector() |
| | | { |
| | | |
| | | try |
| | | { |
| | | Iterator<SelectionKey> iterator = selector.keys().iterator(); |
| | |
| | | */ |
| | | public boolean keepStats() |
| | | { |
| | | |
| | | return keepStats; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setKeepStats(boolean keepStats) |
| | | { |
| | | |
| | | this.keepStats = keepStats; |
| | | } |
| | | |
| | |
| | | */ |
| | | public LDAPStatistics getStatTracker() |
| | | { |
| | | |
| | | return statTracker; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean allowLDAPv2() |
| | | { |
| | | |
| | | return allowLDAPv2; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean allowStartTLS() |
| | | { |
| | | |
| | | return allowStartTLS; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean useSSL() |
| | | { |
| | | |
| | | return useSSL; |
| | | } |
| | | |
| | |
| | | */ |
| | | public SSLClientAuthPolicy getSSLClientAuthPolicy() |
| | | { |
| | | |
| | | return sslClientAuthPolicy; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String[] getEnabledSSLProtocols() |
| | | { |
| | | |
| | | return enabledSSLProtocols; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String[] getEnabledSSLCipherSuites() |
| | | { |
| | | |
| | | return enabledSSLCipherSuites; |
| | | } |
| | | |
| | |
| | | */ |
| | | public DN getKeyManagerProviderDN() |
| | | { |
| | | |
| | | return keyManagerProviderDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public DN getTrustManagerProviderDN() |
| | | { |
| | | |
| | | return trustManagerProviderDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getMaxRequestSize() |
| | | { |
| | | |
| | | return maxRequestSize; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getShutdownListenerName() |
| | | { |
| | | |
| | | return handlerName; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void processServerShutdown(String reason) |
| | | { |
| | | |
| | | shutdownRequested = true; |
| | | |
| | | try |
| | |
| | | */ |
| | | public DN getConfigurableComponentEntryDN() |
| | | { |
| | | |
| | | return configEntryDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public List<ConfigAttribute> getConfigurationAttributes() |
| | | { |
| | | |
| | | LinkedList<ConfigAttribute> configAttrs = new LinkedList<ConfigAttribute>(); |
| | | |
| | | int msgID = MSGID_LDAP_CONNHANDLER_DESCRIPTION_LISTEN_ADDRESS; |
| | |
| | | public boolean hasAcceptableConfiguration(ConfigEntry configEntry, |
| | | List<String> unacceptableReasons) |
| | | { |
| | | |
| | | |
| | | boolean configValid = true; |
| | | |
| | | |
| | |
| | | public ConfigChangeResult applyNewConfiguration(ConfigEntry configEntry, |
| | | boolean detailedResults) |
| | | { |
| | | |
| | | |
| | | // Create variables to include in the response. |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append(handlerName); |
| | | } |
| | | |
| | |
| | | */ |
| | | public DN getComponentEntryDN() |
| | | { |
| | | |
| | | return configEntryDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getClassName() |
| | | { |
| | | |
| | | return CLASS_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public LinkedHashMap<String,String> getAlerts() |
| | | { |
| | | |
| | | LinkedHashMap<String,String> alerts = new LinkedHashMap<String,String>(); |
| | | |
| | | alerts.put(ALERT_TYPE_LDAP_CONNECTION_HANDLER_CONSECUTIVE_FAILURES, |