Lines Matching defs:cid
216 String cid = null;
220 cid = sdh.getHrefCid();
222 this.contentId = cid != null ? cid : encodeCid();
236 String cid = contentId;
237 if(cid != null && cid.length() >0 && cid.charAt(0) != '<')
238 cid = '<' + cid + '>';
239 writeln("Content-Id: " + cid, out);
280 String cid="example.jaxws.sun.com";
282 return name + cid;
390 writer.writeAttribute("href", "cid:"+bab.contentId);
425 return "cid:"+bab.contentId;
436 return "cid:"+bab.contentId;
443 return "cid:"+bab.contentId;
590 private String decodeCid(String cid) {
592 cid = URLDecoder.decode(cid, "utf-8");
596 return cid;
599 private Attachment getAttachment(String cid) throws IOException {
600 if (cid.startsWith("cid:"))
601 cid = cid.substring(4, cid.length());
602 if (cid.indexOf('%') != -1) {
603 cid = decodeCid(cid);
604 return mimeMP.getAttachmentPart(cid);
606 return mimeMP.getAttachmentPart(cid);