Code example for Hashtable

Methods: put

0
            throw new Exception(msg);
        } 
 
        if (!CarbonUtils.isRemoteRegistry()) { 
 
            Dictionary servletParam = new Hashtable(2);
            servletParam.put("org.apache.abdera.protocol.server.Provider", "org.wso2.carbon.registry.app.RegistryProvider");
            httpService.registerServlet("/registry/atom", new AbderaServlet(), servletParam, defaultHttpContext);
            httpService.registerServlet("/registry/tags", new AbderaServlet(), servletParam, defaultHttpContext);
        } 
        registerJUDDIServlet(); 
        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);
            }