| | |
| | | private SearchScope searchScope = SearchScope.WHOLE_SUBTREE; |
| | | private boolean supportAltAuthentication; |
| | | private boolean supportHTTPBasicAuthentication = true; |
| | | private CompletionHandlerFactory completionHandlerFactory; |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | |
| | | */ |
| | | final AtomicReference<Connection> savedConnection = new AtomicReference<Connection>(); |
| | | final CompletionHandler completionHandler = |
| | | CompletionHandlerFactory.getInstance(req.getServletContext()) |
| | | .createCompletionHandler(req, res); |
| | | completionHandlerFactory.createCompletionHandler(req, res); |
| | | if (completionHandler.isAsynchronous()) { |
| | | completionHandler.addCompletionListener(new Runnable() { |
| | | @Override |
| | |
| | | Rest2LDAP.configureConnectionFactory(configuration.get( |
| | | "ldapConnectionFactories").required(), ldapFactoryName); |
| | | |
| | | // Set the completion handler factory based on the Servlet API version. |
| | | completionHandlerFactory = |
| | | CompletionHandlerFactory.getInstance(config.getServletContext()); |
| | | |
| | | isEnabled = true; |
| | | } |
| | | } catch (final ServletException e) { |