Lines Matching defs:cid
53 public DataHandler getAttachmentAsDataHandler(String cid) {
54 Attachment a = attachments.get(stripScheme(cid));
56 throw new WebServiceException(EncodingMessages.NO_SUCH_CONTENT_ID(cid));
61 public byte[] getAttachmentAsByteArray(String cid) {
62 Attachment a = attachments.get(stripScheme(cid));
64 throw new WebServiceException(EncodingMessages.NO_SUCH_CONTENT_ID(cid));
69 * The CID reference has 'cid:' prefix, so get rid of it.
71 private String stripScheme(String cid) {
72 if(cid.startsWith("cid:")) // work defensively, in case the input is wrong
73 cid = cid.substring(4);
74 return cid;