Class EmailResource

java.lang.Object
com.google.gerrit.server.mail.send.EmailResource

public abstract class EmailResource extends Object
Email resource that can be attached to an email.

Can be used for images included in html body of the email.

  • Constructor Details

    • EmailResource

      public EmailResource()
  • Method Details

    • create

      public static EmailResource create(String contentId, String contentType, com.google.protobuf.ByteString content)
    • contentId

      public abstract String contentId()
      Value of Content-ID header used for referring to the resource from html body of the email.
    • contentType

      public abstract String contentType()
      MIME type of the resource.
    • content

      public abstract com.google.protobuf.ByteString content()
      Unencoded data that should be added to the email