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 inherited from class org.apache.james.mime4j.message.AbstractMultipart
bodyParts
-
-
Constructor Summary
Constructors Constructor Description MultipartImpl(String subType)MultipartImpl(String subType, List<NameValuePair> parameters)Creates a new emptyMultipartinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEpilogue()Gets the epilogue.ByteSequencegetEpilogueRaw()StringgetPreamble()Gets the preamble.ByteSequencegetPreambleRaw()voidsetEpilogue(String epilogue)Sets the epilogue.voidsetEpilogueRaw(ByteSequence epilogue)voidsetPreamble(String preamble)Sets the preamble.voidsetPreambleRaw(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
-
-
-
-
Constructor Detail
-
MultipartImpl
public MultipartImpl(String subType)
-
MultipartImpl
public MultipartImpl(String subType, List<NameValuePair> parameters)
Creates a new emptyMultipartinstance.
-
-
Method Detail
-
getPreambleRaw
public ByteSequence getPreambleRaw()
-
setPreambleRaw
public void setPreambleRaw(ByteSequence preamble)
-
getPreamble
public String getPreamble()
Gets the preamble.- Specified by:
getPreamblein interfaceMultipart- Specified by:
getPreamblein classAbstractMultipart- Returns:
- the preamble.
-
setPreamble
public void setPreamble(String preamble)
Sets the preamble.- Specified by:
setPreamblein interfaceMultipart- Specified by:
setPreamblein classAbstractMultipart- Parameters:
preamble- the preamble.
-
getEpilogueRaw
public ByteSequence getEpilogueRaw()
-
setEpilogueRaw
public void setEpilogueRaw(ByteSequence epilogue)
-
getEpilogue
public String getEpilogue()
Gets the epilogue.- Specified by:
getEpiloguein interfaceMultipart- Specified by:
getEpiloguein classAbstractMultipart- Returns:
- the epilogue.
-
setEpilogue
public void setEpilogue(String epilogue)
Sets the epilogue.- Specified by:
setEpiloguein interfaceMultipart- Specified by:
setEpiloguein classAbstractMultipart- Parameters:
epilogue- the epilogue.
-
-