Class MultipartImpl
java.lang.Object
org.apache.james.mime4j.message.AbstractMultipart
org.apache.james.mime4j.message.MultipartImpl
- All Implemented Interfaces:
Body, Disposable, Multipart
Default implementation of
Multipart.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteSequenceprivate booleanprivate Stringprivate ByteSequenceprivate booleanprivate StringFields inherited from class AbstractMultipart
bodyParts -
Constructor Summary
ConstructorsConstructorDescriptionMultipartImpl(String subType) MultipartImpl(String subType, List<NameValuePair> parameters) Creates a new emptyMultipartinstance. -
Method Summary
Modifier and TypeMethodDescriptionGets the epilogue.Gets the preamble.voidsetEpilogue(String epilogue) Sets the epilogue.voidsetEpilogueRaw(ByteSequence epilogue) voidsetPreamble(String preamble) Sets the preamble.voidsetPreambleRaw(ByteSequence preamble) Methods inherited from class AbstractMultipart
addBodyPart, addBodyPart, dispose, getBodyParts, getContentTypeParameters, getCount, getParent, getSubType, removeBodyPart, replaceBodyPart, setBodyParts, setParent, setSubType
-
Field Details
-
preamble
-
preambleStrCache
-
preambleComputed
private transient boolean preambleComputed -
epilogue
-
epilogueStrCache
-
epilogueComputed
private transient boolean epilogueComputed
-
-
Constructor Details
-
MultipartImpl
-
MultipartImpl
Creates a new emptyMultipartinstance.
-
-
Method Details
-
getPreambleRaw
-
setPreambleRaw
-
getPreamble
Gets the preamble.- Specified by:
getPreamblein interfaceMultipart- Specified by:
getPreamblein classAbstractMultipart- Returns:
- the preamble.
-
setPreamble
Sets the preamble.- Specified by:
setPreamblein interfaceMultipart- Specified by:
setPreamblein classAbstractMultipart- Parameters:
preamble- the preamble.
-
getEpilogueRaw
-
setEpilogueRaw
-
getEpilogue
Gets the epilogue.- Specified by:
getEpiloguein interfaceMultipart- Specified by:
getEpiloguein classAbstractMultipart- Returns:
- the epilogue.
-
setEpilogue
Sets the epilogue.- Specified by:
setEpiloguein interfaceMultipart- Specified by:
setEpiloguein classAbstractMultipart- Parameters:
epilogue- the epilogue.
-