Code example for Hashtable

Methods: put

            throw new Exception(msg);
        if (!CarbonUtils.isRemoteRegistry()) { 
            Dictionary servletParam = new Hashtable(2);
            servletParam.put("org.apache.abdera.protocol.server.Provider", "");
            httpService.registerServlet("/registry/atom", new AbderaServlet(), servletParam, defaultHttpContext);
            httpService.registerServlet("/registry/tags", new AbderaServlet(), servletParam, defaultHttpContext);
        httpService.registerServlet("/registry/resource", new ResourceServlet(), null, defaultHttpContext);
    private void registerJUDDIServlet() { 
        if (juddiRegistryServlet != null && httpService != null) {
            try { 
                httpService.registerServlet("/juddiv3", juddiRegistryServlet, null, defaultHttpContext);
            } catch (Exception e) {
                log.error("Unable to register jUDDI servlet", e);
Connect your IDE to all the code out there  Get Codota for Java