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 class
Attachment.AttachmentBuilder<C extends Attachment,
B extends Attachment.AttachmentBuilder<C, B>> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionstatic Attachment.AttachmentBuilder
<?, ?> builder()
protected boolean
boolean
static byte[]
getDecodedContent
(byte[] content) static byte[]
getDecodedContent
(String content) static String
getDecodedStringContent
(byte[] content) static String
getDecodedStringContent
(String content) static byte[]
getEncodedContent
(byte[] content) static byte[]
getEncodedContent
(String content) static String
getEncodedStringContent
(byte[] content) static String
getEncodedStringContent
(String content) getId()
getName()
getType()
int
hashCode()
void
setApplicationId
(String applicationId) void
setBase64Content
(String base64Content) void
setContent
(String content) void
setTenantId
(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()
-