Package railo.commons.activation

Examples of railo.commons.activation.ResourceDataSource


   
    // set Data Source
    String strRes = att.getAbsolutePath();
    if(!StringUtil.isEmpty(strRes)){
     
      mbp.setDataHandler(new DataHandler(new ResourceDataSource(config.getResource(strRes))));
    }
    else mbp.setDataHandler(new DataHandler(new URLDataSource2(att.getURL())));
   
    mbp.setFileName(att.getFileName());
    if(!StringUtil.isEmpty(att.getType())) mbp.setHeader("Content-Type", att.getType());
View Full Code Here

TOP

Related Classes of railo.commons.activation.ResourceDataSource

Copyright © 2018 www.massapicom. 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.