Examples of mimeType()


Examples of ariba.ui.aribaweb.util.AWFileData.mimeType()

        }

        if (fileData != null && (fileData.bytesRead() > 0 || booleanValueForBinding("newMode"))) {
            String filename = fileData.filename();
            setValueForBinding(filename, BindingNames.filename);
            setValueForBinding(fileData.mimeType(), BindingNames.mimeType);
            setValueForBinding(fileData.fileIncomplete(), BindingNames.fileSizeExceeded);

            // Only one binding for file data is honored. Precedence order: file, input stream, byte array.
            if (parent().hasBinding(BindingNames.file)) {
                File file = fileData.file();
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol.mimeType()

    }
   
    //javadoc inheritted
    public void initialiseResponse() {
        VolantisProtocol protocol = marinerPageContext.getProtocol();
        setContentType(protocol.mimeType());
    }
   
    //javadoc inheritted
    public void setContentType(String mimeType) {
        InternalResponse response = requestContext.getResponse();
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol.mimeType()

    /**
     * This method sets the content type.
     */
    public void initialiseResponse () {
        VolantisProtocol protocol = marinerPageContext.getProtocol ();
        setContentType (protocol.mimeType ());
    }

    /**
     * This method sets the content type.
     */
 
View Full Code Here

Examples of er.attachment.model.ERAttachment.mimeType()

            ERAttachment attachment = fetchAttachmentFor(editingContext, requestedAttachmentID, requestedWebPath);
           
            if (_delegate != null && !_delegate.attachmentVisible(attachment, request, context)) {
              throw new SecurityException("You are not allowed to view the requested attachment.");
            }
            mimeType = attachment.mimeType();
            length = attachment.size().longValue();
            fileName = attachment.originalFileName();
            ERAttachmentProcessor<ERAttachment> attachmentProcessor = ERAttachmentProcessor.processorForType(attachment);
            if (!proxyAsAttachment) {
              proxyAsAttachment = attachmentProcessor.proxyAsAttachment(attachment);
View Full Code Here

Examples of er.attachment.utils.ERMimeType.mimeType()

    String suggestedMimeType = null;
    String extension = ERXFileUtilities.fileExtension(recommendedFileName);

    ERMimeType erMimeType = ERMimeTypeManager.mimeTypeManager().mimeTypeForExtension(extension, false);
    if (erMimeType != null) {
      suggestedMimeType = erMimeType.mimeType();
    }

    if (suggestedMimeType == null) {
      suggestedMimeType = "application/x-octet-stream";
    }
View Full Code Here

Examples of er.attachment.utils.ERMimeType.mimeType()

   
    if (suggestedMimeType == null) {
      String extension = ERXFileUtilities.fileExtension(recommendedFileName);
      ERMimeType erMimeType = ERMimeTypeManager.mimeTypeManager().mimeTypeForExtension(extension, false);
      if (erMimeType != null) {
        suggestedMimeType = erMimeType.mimeType();
      }

      if (suggestedMimeType == null) {
        suggestedMimeType = "application/x-octet-stream";
      }
View Full Code Here

Examples of er.attachment.utils.ERMimeType.mimeType()

    ERAttachment attachment = attachment();
    if (attachment != null) {
      if (attachment.available().booleanValue()) {
        ERMimeType mimeType = attachment.erMimeType();
        if (mimeType != null) {
          viewerClassName = ERXProperties.stringForKey("er.attachment.mimeType." +  mimeType.mimeType() +".viewer");
          if (viewerClassName == null) {
            viewerClassName = ERXProperties.stringForKey("er.attachment.mimeType." +  mimeType.globMimeType().mimeType() +".viewer");
          }
        }
      }
View Full Code Here

Examples of er.attachment.utils.ERMimeType.mimeType()

    String mimeType;
    if (erMimeType == null) {
      mimeType = "application/x-octet-stream";
    }
    else {
      mimeType = erMimeType.mimeType();
    }
    String iconPath = "icons/" + sizeStr + "/" + mimeType + ".png";
    return iconPath;
  }
View Full Code Here

Examples of es.ipsa.atril.doc.user.Item.mimeType()

      oAtr.set((long) iHeight);
      oThl.save("");
        Item oThi = oThl.item();
        String sItemName = "th"+oDoc.id()+".jpg";
        oThi.setName(sItemName);
        oThi.mimeType("image/jpeg");
        OutputStream oOutStrm = oThi.getOutputStream();
        oPipe = new StreamPipe();
        oPipe.between(new ByteArrayInputStream(byThumb), oOutStrm);
        oThl.save("");
        oOutStrm.close();
View Full Code Here

Examples of net.pms.dlna.DLNAResource.mimeType()

    long len = dlna.length();
    dlna.setPlayer(null);
    Range range = RemoteUtil.parseRange(t.getRequestHeaders(), len);
    Range.Byte rb = range.asByteRange();
    InputStream in = dlna.getInputStream(range, root.getDefaultRenderer());
    String mime = root.getDefaultRenderer().getMimeType(dlna.mimeType());
    Headers hdr = t.getResponseHeaders();
    LOGGER.debug("dumping media " + mime + " " + dlna);
    hdr.add("Content-Type", mime);
    hdr.add("Accept-Ranges", "bytes");
    hdr.add("Server", PMS.get().getServerName());
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.