Code example for Hashtable

Methods: put

0
    /** 
     * Register the Servlet used to download attachments 
     */ 
    private void registerAttachmentDownloadServlet() { 
        HttpServlet attachmentDownloadServlet = new AttachmentDownloadServlet();
        Dictionary redirectorParams = new Hashtable(1);
        redirectorParams.put("url-pattern", "/attachment-mgt/download");
        //redirectorParams.put("url-pattern", "/t/carbon.super" + AttachmentMgtConfigurationConstants.ATTACHMENT_DOWNLOAD_SERVELET_URL_PATTERN); 
        bundleContext.registerService(Servlet.class.getName(), attachmentDownloadServlet,
                redirectorParams);
        if(log.isDebugEnabled()) {
            log.debug("Attachment Download Servlet registered.");
        } 
    } 
 
    /** 
     * Bundle deactivation method. 
     * 
     * @param componentContext : The component context. 
     */ 
    protected void deactivate(ComponentContext componentContext) {