Package com.ibm.sbt.services.client.ClientService

Examples of com.ibm.sbt.services.client.ClientService.ContentFile


  @Override
  protected Content getFileContent(File file, long length, String fileName) {
    String fileExt = MIME.getFileExtension(fileName);
    String contentType = MIME.getMIMETypeFromExtension(fileExt);
    contentType = (StringUtil.isEmpty(contentType)) ? MIMETYPE_DEFAULT : contentType;
    Content content = new ContentFile(file, contentType);
    return content;
  }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.ClientService.ContentFile

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.