use of org.wso2.carbon.attachment.mgt.servlet.AttachmentDownloadServlet in project carbon-business-process by wso2.
the class AttachmentServiceComponent method registerAttachmentDownloadServlet.
/**
* 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.");
}
}
Aggregations