Code example for Hashtable

Methods: put

0
        userServlet = new OpenIDUserServlet();
        bundleContext.registerService(Servlet.class.getName(), userServlet,
                dictionaryResourceParams);
 
        // Register OpenIDServerServlet 
        dictionaryResourceParams = new Hashtable(1);
        dictionaryResourceParams.put("url-pattern", "/openidserver");
        providerServlet = new OpenIDProviderServlet();
        bundleContext.registerService(Servlet.class.getName(), providerServlet,
                dictionaryResourceParams);
    } 
 
} 
Experience pair programming with AI  Get Codota for Java