Package org.apache.james.mime4j.message
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 ByteSequence
private boolean
private String
private ByteSequence
private boolean
private String
Fields inherited from class org.apache.james.mime4j.message.AbstractMultipart
bodyParts
-
Constructor Summary
ConstructorsConstructorDescriptionMultipartImpl
(String subType) MultipartImpl
(String subType, List<NameValuePair> parameters) Creates a new emptyMultipart
instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the epilogue.Gets the preamble.void
setEpilogue
(String epilogue) Sets the epilogue.void
setEpilogueRaw
(ByteSequence epilogue) void
setPreamble
(String preamble) Sets the preamble.void
setPreambleRaw
(ByteSequence preamble) Methods inherited from class org.apache.james.mime4j.message.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 emptyMultipart
instance.
-
-
Method Details
-
getPreambleRaw
-
setPreambleRaw
-
getPreamble
Gets the preamble.- Specified by:
getPreamble
in interfaceMultipart
- Specified by:
getPreamble
in classAbstractMultipart
- Returns:
- the preamble.
-
setPreamble
Sets the preamble.- Specified by:
setPreamble
in interfaceMultipart
- Specified by:
setPreamble
in classAbstractMultipart
- Parameters:
preamble
- the preamble.
-
getEpilogueRaw
-
setEpilogueRaw
-
getEpilogue
Gets the epilogue.- Specified by:
getEpilogue
in interfaceMultipart
- Specified by:
getEpilogue
in classAbstractMultipart
- Returns:
- the epilogue.
-
setEpilogue
Sets the epilogue.- Specified by:
setEpilogue
in interfaceMultipart
- Specified by:
setEpilogue
in classAbstractMultipart
- Parameters:
epilogue
- the epilogue.
-