/** * Sets the MIME header whose name is "Content-Location" with the given value. * * * @param contentLocation a {@code String} giving the value of the * "Content-Location" header * @exception IllegalArgumentException if there was a problem with * the specified content location */ public void setContentLocation(String contentLocation) { setMimeHeader("Content-Location", contentLocation); }
/** * Sets the MIME header "Content-Id" with the given value. * * @param contentId a <CODE>String</CODE> giving the value of the "Content-Id" header * @throws IllegalArgumentException * if there was a problem with the specified <CODE> contentId</CODE> value * @see #getContentId() getContentId() */ public void setContentId(String contentId) { setMimeHeader("Content-Id", contentId); }
/** * Sets the MIME header "Content-Type" with the given value. * * @param contentType a <CODE>String</CODE> giving the value of the "Content-Type" header * @throws IllegalArgumentException * if there was a problem with the specified content type */ public void setContentType(String contentType) { setMimeHeader("Content-Type", contentType); }
/** * Sets the MIME header "Content-Location" with the given value. * * @param contentLocation a <CODE>String</CODE> giving the value of the "Content-Location" * header * @throws IllegalArgumentException * if there was a problem with the specified content location */ public void setContentLocation(String contentLocation) { setMimeHeader("Content-Location", contentLocation); }
/** * Sets the MIME header whose name is "Content-Type" with the given value. * * @param contentType a {@code String} giving the value of the * "Content-Type" header * * @exception IllegalArgumentException if there was a problem with * the specified content type */ public void setContentType(String contentType) { setMimeHeader("Content-Type", contentType); }
/** * Sets the MIME header whose name is "Content-Type" with the given value. * * @param contentType a {@code String} giving the value of the * "Content-Type" header * * @exception IllegalArgumentException if there was a problem with * the specified content type */ public void setContentType(String contentType) { setMimeHeader("Content-Type", contentType); }
/** * Sets the MIME header whose name is "Content-Location" with the given value. * * * @param contentLocation a {@code String} giving the value of the * "Content-Location" header * @exception IllegalArgumentException if there was a problem with * the specified content location */ public void setContentLocation(String contentLocation) { setMimeHeader("Content-Location", contentLocation); }
/** * Sets the MIME header whose name is "Content-Location" with the given value. * * * @param contentLocation a <code>String</code> giving the value of the * "Content-Location" header * @exception IllegalArgumentException if there was a problem with * the specified content location */ public void setContentLocation(String contentLocation) { setMimeHeader("Content-Location", contentLocation); }
/** * Sets the MIME header whose name is "Content-Type" with the given value. * * @param contentType a <code>String</code> giving the value of the * "Content-Type" header * * @exception IllegalArgumentException if there was a problem with * the specified content type */ public void setContentType(String contentType) { setMimeHeader("Content-Type", contentType); }
/** * Sets the MIME header whose name is "Content-ID" with the given value. * * @param contentId a <code>String</code> giving the value of the * "Content-ID" header * * @exception IllegalArgumentException if there was a problem with * the specified <code>contentId</code> value * @see #getContentId */ public void setContentId(String contentId) { setMimeHeader("Content-ID", contentId); }
/** * Sets the MIME header whose name is "Content-Location" with the given value. * * * @param contentLocation a <code>String</code> giving the value of the * "Content-Location" header * @exception IllegalArgumentException if there was a problem with * the specified content location */ public void setContentLocation(String contentLocation) { setMimeHeader("Content-Location", contentLocation); }
/** * Sets the MIME header whose name is "Content-Type" with the given value. * * @param contentType a <code>String</code> giving the value of the * "Content-Type" header * * @exception IllegalArgumentException if there was a problem with * the specified content type */ public void setContentType(String contentType) { setMimeHeader("Content-Type", contentType); }
/** * Sets the MIME header whose name is "Content-Location" with the given value. * * * @param contentLocation a {@code String} giving the value of the * "Content-Location" header * @exception IllegalArgumentException if there was a problem with * the specified content location */ public void setContentLocation(String contentLocation) { setMimeHeader("Content-Location", contentLocation); }
/** * Sets the MIME header whose name is "Content-ID" with the given value. * * @param contentId a {@code String} giving the value of the * "Content-ID" header * * @exception IllegalArgumentException if there was a problem with * the specified {@code contentId} value * @see #getContentId */ public void setContentId(String contentId) { setMimeHeader("Content-ID", contentId); }
/** * Sets the MIME header whose name is "Content-Type" with the given value. * * @param contentType a {@code String} giving the value of the * "Content-Type" header * * @exception IllegalArgumentException if there was a problem with * the specified content type */ public void setContentType(String contentType) { setMimeHeader("Content-Type", contentType); }
/** * Sets the MIME header whose name is "Content-ID" with the given value. * * @param contentId a {@code String} giving the value of the * "Content-ID" header * * @exception IllegalArgumentException if there was a problem with * the specified {@code contentId} value * @see #getContentId */ public void setContentId(String contentId) { setMimeHeader("Content-ID", contentId); }
public Attachment addAttachment(String contentId, DataHandler dataHandler) { Assert.hasLength(contentId, "contentId must not be empty"); Assert.notNull(dataHandler, "dataHandler must not be null"); AttachmentPart saajAttachment = getImplementation().addAttachmentPart(getSaajMessage(), dataHandler); saajAttachment.setContentId(contentId); saajAttachment.setMimeHeader(TransportConstants.HEADER_CONTENT_TRANSFER_ENCODING, "binary"); return new SaajAttachment(saajAttachment); }
@Override public Attachment addAttachment(String contentId, DataHandler dataHandler) { Assert.hasLength(contentId, "contentId must not be empty"); Assert.notNull(dataHandler, "dataHandler must not be null"); SOAPMessage message = getSaajMessage(); AttachmentPart attachmentPart = message.createAttachmentPart(dataHandler); message.addAttachmentPart(attachmentPart); attachmentPart.setContentId(contentId); attachmentPart.setMimeHeader(TransportConstants.HEADER_CONTENT_TRANSFER_ENCODING, "binary"); return new SaajAttachment(attachmentPart); }
@Override public Attachment addAttachment(String contentId, DataHandler dataHandler) { Assert.hasLength(contentId, "contentId must not be empty"); Assert.notNull(dataHandler, "dataHandler must not be null"); SOAPMessage message = getSaajMessage(); AttachmentPart attachmentPart = message.createAttachmentPart(dataHandler); message.addAttachmentPart(attachmentPart); attachmentPart.setContentId(contentId); attachmentPart.setMimeHeader(TransportConstants.HEADER_CONTENT_TRANSFER_ENCODING, "binary"); return new SaajAttachment(attachmentPart); }
@Override public Attachment addAttachment(String contentId, DataHandler dataHandler) { Assert.hasLength(contentId, "contentId must not be empty"); Assert.notNull(dataHandler, "dataHandler must not be null"); SOAPMessage message = getSaajMessage(); AttachmentPart attachmentPart = message.createAttachmentPart(dataHandler); message.addAttachmentPart(attachmentPart); attachmentPart.setContentId(contentId); attachmentPart.setMimeHeader(TransportConstants.HEADER_CONTENT_TRANSFER_ENCODING, "binary"); return new SaajAttachment(attachmentPart); }