org.apache.james.mime4j.message
Class MultipartImpl

java.lang.Object
  extended by org.apache.james.mime4j.message.AbstractMultipart
      extended by org.apache.james.mime4j.message.MultipartImpl
All Implemented Interfaces:
Body, Disposable, Multipart

public class MultipartImpl
extends AbstractMultipart

Default implementation of Multipart.


Field Summary
 
Fields inherited from class org.apache.james.mime4j.message.AbstractMultipart
bodyParts
 
Constructor Summary
MultipartImpl(java.lang.String subType)
          Creates a new empty Multipart instance.
 
Method Summary
 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, getCount, getParent, getSubType, removeBodyPart, replaceBodyPart, setBodyParts, setParent, setSubType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartImpl

public MultipartImpl(java.lang.String subType)
Creates a new empty Multipart 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 interface Multipart
Specified by:
getPreamble in class AbstractMultipart
Returns:
the preamble.

setPreamble

public void setPreamble(java.lang.String preamble)
Sets the preamble.

Specified by:
setPreamble in interface Multipart
Specified by:
setPreamble in class AbstractMultipart
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 interface Multipart
Specified by:
getEpilogue in class AbstractMultipart
Returns:
the epilogue.

setEpilogue

public void setEpilogue(java.lang.String epilogue)
Sets the epilogue.

Specified by:
setEpilogue in interface Multipart
Specified by:
setEpilogue in class AbstractMultipart
Parameters:
epilogue - the epilogue.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.