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
public class MultipartImpl extends AbstractMultipart
Default implementation ofMultipart
.
-
-
Field Summary
Fields Modifier and Type Field Description private ByteSequence
epilogue
private boolean
epilogueComputed
private java.lang.String
epilogueStrCache
private ByteSequence
preamble
private boolean
preambleComputed
private java.lang.String
preambleStrCache
-
Fields inherited from class org.apache.james.mime4j.message.AbstractMultipart
bodyParts
-
-
Constructor Summary
Constructors Constructor Description MultipartImpl(java.lang.String subType)
MultipartImpl(java.lang.String subType, java.util.List<NameValuePair> parameters)
Creates a new emptyMultipart
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEpilogue()
Gets the epilogue.ByteSequence
getEpilogueRaw()
java.lang.String
getPreamble()
Gets the preamble.ByteSequence
getPreambleRaw()
void
setEpilogue(java.lang.String epilogue)
Sets the epilogue.void
setEpilogueRaw(ByteSequence epilogue)
void
setPreamble(java.lang.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 Detail
-
preamble
private ByteSequence preamble
-
preambleStrCache
private transient java.lang.String preambleStrCache
-
preambleComputed
private transient boolean preambleComputed
-
epilogue
private ByteSequence epilogue
-
epilogueStrCache
private transient java.lang.String epilogueStrCache
-
epilogueComputed
private transient boolean epilogueComputed
-
-
Constructor Detail
-
MultipartImpl
public MultipartImpl(java.lang.String subType)
-
MultipartImpl
public MultipartImpl(java.lang.String subType, java.util.List<NameValuePair> parameters)
Creates a new emptyMultipart
instance.
-
-
Method Detail
-
getPreambleRaw
public ByteSequence getPreambleRaw()
-
setPreambleRaw
public void setPreambleRaw(ByteSequence preamble)
-
getPreamble
public java.lang.String getPreamble()
Gets the preamble.- Specified by:
getPreamble
in interfaceMultipart
- Specified by:
getPreamble
in classAbstractMultipart
- Returns:
- the preamble.
-
setPreamble
public void setPreamble(java.lang.String preamble)
Sets the preamble.- Specified by:
setPreamble
in interfaceMultipart
- Specified by:
setPreamble
in classAbstractMultipart
- Parameters:
preamble
- the preamble.
-
getEpilogueRaw
public ByteSequence getEpilogueRaw()
-
setEpilogueRaw
public void setEpilogueRaw(ByteSequence epilogue)
-
getEpilogue
public java.lang.String getEpilogue()
Gets the epilogue.- Specified by:
getEpilogue
in interfaceMultipart
- Specified by:
getEpilogue
in classAbstractMultipart
- Returns:
- the epilogue.
-
setEpilogue
public void setEpilogue(java.lang.String epilogue)
Sets the epilogue.- Specified by:
setEpilogue
in interfaceMultipart
- Specified by:
setEpilogue
in classAbstractMultipart
- Parameters:
epilogue
- the epilogue.
-
-