Examples of MIMEType2FileExtensionMap


Examples of org.wso2.carbon.core.util.MIMEType2FileExtensionMap

                                    String subPath = requestPath.substring(requestPath.indexOf(serviceName) +
                                            serviceName.length() + 1);
                                    file = new File(serviceResourceFolder.getAbsolutePath() + "/www/"
                                            + subPath);
                                    if (file.exists()) {
                                        MIMEType2FileExtensionMap map = CustomUIServiceComponent.getExtensionMap();
                                        if (map != null) {
                                            response.setContentType(map.getMIMEType(file));
                                        }
                                        MashupUtils.writeFile(httpServletResponse, file);
                                        return;
                                    }
                                }
View Full Code Here

Examples of org.wso2.carbon.core.util.MIMEType2FileExtensionMap

    private static Log log = LogFactory.getLog(FileDownloadUtil.class);

    private MIMEType2FileExtensionMap mimeMap;

    public FileDownloadUtil(BundleContext context) {
        mimeMap = new MIMEType2FileExtensionMap();
        mimeMap.init(context);
    }
View Full Code Here

Examples of org.wso2.carbon.core.util.MIMEType2FileExtensionMap

    private static Log log = LogFactory.getLog(FileDownloadUtil.class);

    private MIMEType2FileExtensionMap mimeMap;

    public FileDownloadUtil(BundleContext context) {
        mimeMap = new MIMEType2FileExtensionMap();
        mimeMap.init(context);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.