/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getData() != null) sb.append("Data: ").append(getData()).append(","); if (getCharset() != null) sb.append("Charset: ").append(getCharset()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Content == false) return false; Content other = (Content) obj; if (other.getData() == null ^ this.getData() == null) return false; if (other.getData() != null && other.getData().equals(this.getData()) == false) return false; if (other.getCharset() == null ^ this.getCharset() == null) return false; if (other.getCharset() != null && other.getCharset().equals(this.getCharset()) == false) return false; return true; }
if (subject != null) { if (subject.getData() != null) { request.addParameter("Message.Subject.Data", StringUtils.fromString(subject.getData())); if (text != null) { if (text.getData() != null) { request.addParameter("Message.Body.Text.Data", StringUtils.fromString(text.getData())); if (html != null) { if (html.getData() != null) { request.addParameter("Message.Body.Html.Data", StringUtils.fromString(html.getData()));
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getData() != null) sb.append("Data: " + getData() + ","); if (getCharset() != null) sb.append("Charset: " + getCharset()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Content == false) return false; Content other = (Content) obj; if (other.getData() == null ^ this.getData() == null) return false; if (other.getData() != null && other.getData().equals(this.getData()) == false) return false; if (other.getCharset() == null ^ this.getCharset() == null) return false; if (other.getCharset() != null && other.getCharset().equals(this.getCharset()) == false) return false; return true; } }
public void marshall(Content _content, Request<?> request, String _prefix) { String prefix; if (_content.getData() != null) { prefix = _prefix + "Data"; String data = _content.getData(); request.addParameter(prefix, StringUtils.fromString(data)); } if (_content.getCharset() != null) { prefix = _prefix + "Charset"; String charset = _content.getCharset(); request.addParameter(prefix, StringUtils.fromString(charset)); } }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getData() != null) sb.append("Data: ").append(getData()).append(","); if (getCharset() != null) sb.append("Charset: ").append(getCharset()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Content == false) return false; Content other = (Content) obj; if (other.getData() == null ^ this.getData() == null) return false; if (other.getData() != null && other.getData().equals(this.getData()) == false) return false; if (other.getCharset() == null ^ this.getCharset() == null) return false; if (other.getCharset() != null && other.getCharset().equals(this.getCharset()) == false) return false; return true; }
if (subject != null) { if (subject.getData() != null) { request.addParameter("Message.Subject.Data", StringUtils.fromString(subject.getData())); if (text != null) { if (text.getData() != null) { request.addParameter("Message.Body.Text.Data", StringUtils.fromString(text.getData())); if (html != null) { if (html.getData() != null) { request.addParameter("Message.Body.Html.Data", StringUtils.fromString(html.getData()));