Class Attachment

java.lang.Object
com.totvs.tjf.communication.sdk.messages.Attachment
All Implemented Interfaces:
Publisher
Direct Known Subclasses:
EmailAttachment

public class Attachment extends Object implements Publisher
This class represents the default structure of an attachment.
Author:
Rubens dos Santos Filho, Diego Nunes
  • Field Details

    • id

      protected final String id
    • tenantId

      protected String tenantId
    • applicationId

      protected String applicationId
    • name

      protected final String name
    • type

      protected final String type
    • base64Content

      protected String base64Content
  • Constructor Details

  • Method Details

    • setContent

      public void setContent(String content)
    • getContent

      public String getContent()
    • getEncodedStringContent

      public static String getEncodedStringContent(byte[] content)
    • getEncodedStringContent

      public static String getEncodedStringContent(String content)
    • getEncodedContent

      public static byte[] getEncodedContent(byte[] content)
    • getEncodedContent

      public static byte[] getEncodedContent(String content)
    • getDecodedContent

      public static byte[] getDecodedContent(byte[] content)
    • getDecodedContent

      public static byte[] getDecodedContent(String content)
    • getDecodedStringContent

      public static String getDecodedStringContent(String content)
    • getDecodedStringContent

      public static String getDecodedStringContent(byte[] content)
    • builder

      public static Attachment.AttachmentBuilder<?,?> builder()
    • getId

      public String getId()
    • getTenantId

      public String getTenantId()
    • getApplicationId

      public String getApplicationId()
    • getName

      public String getName()
    • getType

      public String getType()
    • getBase64Content

      public String getBase64Content()
    • setTenantId

      public void setTenantId(String tenantId)
    • setApplicationId

      public void setApplicationId(String applicationId)
    • setBase64Content

      public void setBase64Content(String base64Content)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object