Interface MimePartTypeObj
- All Superinterfaces:
GenericValidation,SdoDefaultValidator,Serializable,StixCustomProperties
- All Known Implementing Classes:
MimePartType
@Immutable
@BusinessRule(ifExp="true",
thenExp="getBody().isPresent() == true || getBodyRawRef().isPresent() == true",
errorMessage="One of body OR body_raw_ref MUST be included.")
public interface MimePartTypeObj
extends GenericValidation, StixCustomProperties, Serializable
Specifies a component of a multi-part email body.
-
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Contents of body MUST be decoded to Unicode.The object referenced in this property MUST be of type artifact or file.Any additional “Content-Type” header field parameters such as charset SHOULD be included in this property.Methods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyIdMethods inherited from interface security.whisper.javastix.common.StixCustomProperties
getCustomProperties
-
Method Details
-
getBody
@JsonPropertyDescription("Specifies the contents of the MIME part if the content_type is not provided OR starts with text/") Optional<String> getBody()Contents of body MUST be decoded to Unicode. -
getBodyRawRef
@JsonPropertyDescription("Specifies the contents of non-textual MIME parts, that is those whose content_type does not start with text/") Optional<String> getBodyRawRef()The object referenced in this property MUST be of type artifact or file. For use cases where conveying the actual data contained in the MIME part is of primary importance, artifact SHOULD be used. Otherwise, for use cases where conveying metadata about the file-like properties of the MIME part is of primary importance, file SHOULD be used. -
getContentType
@JsonPropertyDescription("Specifies the value of the \'Content-Type\' header field of the MIME part.") Optional<String> getContentType()Any additional “Content-Type” header field parameters such as charset SHOULD be included in this property. -
getContentDisposition
-