Class Attachment
java.lang.Object
com.totvs.tjf.communication.sdk.messages.Attachment
- All Implemented Interfaces:
Publisher
- Direct Known Subclasses:
EmailAttachment
This class represents the default structure of an attachment.
- Author:
- Rubens dos Santos Filho, Diego Nunes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAttachment.AttachmentBuilder<C extends Attachment,B extends Attachment.AttachmentBuilder<C, B>> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic Attachment.AttachmentBuilder<?, ?> builder()protected booleanbooleanstatic byte[]getDecodedContent(byte[] content) static byte[]getDecodedContent(String content) static StringgetDecodedStringContent(byte[] content) static StringgetDecodedStringContent(String content) static byte[]getEncodedContent(byte[] content) static byte[]getEncodedContent(String content) static StringgetEncodedStringContent(byte[] content) static StringgetEncodedStringContent(String content) getId()getName()getType()inthashCode()voidsetApplicationId(String applicationId) voidsetBase64Content(String base64Content) voidsetContent(String content) voidsetTenantId(String tenantId) toString()
-
Field Details
-
id
-
tenantId
-
applicationId
-
name
-
type
-
base64Content
-
-
Constructor Details
-
Attachment
protected Attachment() -
Attachment
-
-
Method Details
-
setContent
-
getContent
-
getEncodedStringContent
-
getEncodedStringContent
-
getEncodedContent
public static byte[] getEncodedContent(byte[] content) -
getEncodedContent
-
getDecodedContent
public static byte[] getDecodedContent(byte[] content) -
getDecodedContent
-
getDecodedStringContent
-
getDecodedStringContent
-
builder
-
getId
-
getTenantId
-
getApplicationId
-
getName
-
getType
-
getBase64Content
-
setTenantId
-
setApplicationId
-
setBase64Content
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-