com.ibm.xsp.http
Class MimeMultipart

java.lang.Object
  extended by com.ibm.xsp.http.MimeMultipart
All Implemented Interfaces:
IMimeMultipart, java.io.Serializable

public class MimeMultipart
extends java.lang.Object
implements IMimeMultipart, java.io.Serializable

This class represents a multipart mime item. It contains the item name and a list of all the mime parts.

See Also:
Serialized Form

Nested Class Summary
static class MimeMultipart.HtmlWrapper
          Creates cached HTML wrapper class
 
Constructor Summary
MimeMultipart(java.lang.Object o)
           
 
Method Summary
static MimeMultipart fromHTML(java.lang.Object value)
          Returns value as a MimeMultipart
 java.lang.String getContentAsText()
          Return the text content as simple text.
 long getContentLength()
          Returns the content length for the file
 java.lang.String getHTML()
          Returns an HTML representation of the MIME
 java.lang.String getItemName()
          Returns the name of the name of the rich text item which holds this Mime
 long[] getMimeLengths()
          Returns an array of content lengths for the files
 IMimePart[] getMimeParts()
          Returns an array of IMimeParts
 java.lang.String[] getMimeTypes()
          Returns an array of content types for the files
 boolean isHTMLConverted()
          Returns true if the HTML is the result of a conversion that requires a user prompt
 boolean isSameAs(IMimeMultipart rval)
          Returns the position
 void setHTMLConverted(boolean isConverted)
          Specifies if the HTML is the result of a conversion that requires a user prompt
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MimeMultipart

public MimeMultipart(java.lang.Object o)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContentLength

public long getContentLength()
Description copied from interface: IMimeMultipart
Returns the content length for the file

Specified by:
getContentLength in interface IMimeMultipart

getItemName

public java.lang.String getItemName()
Description copied from interface: IMimeMultipart
Returns the name of the name of the rich text item which holds this Mime

Specified by:
getItemName in interface IMimeMultipart

getMimeLengths

public long[] getMimeLengths()
Description copied from interface: IMimeMultipart
Returns an array of content lengths for the files

Specified by:
getMimeLengths in interface IMimeMultipart

getMimeParts

public IMimePart[] getMimeParts()
Description copied from interface: IMimeMultipart
Returns an array of IMimeParts

Specified by:
getMimeParts in interface IMimeMultipart

getMimeTypes

public java.lang.String[] getMimeTypes()
Description copied from interface: IMimeMultipart
Returns an array of content types for the files

Specified by:
getMimeTypes in interface IMimeMultipart

getHTML

public java.lang.String getHTML()
Description copied from interface: IMimeMultipart
Returns an HTML representation of the MIME

Specified by:
getHTML in interface IMimeMultipart

getContentAsText

public java.lang.String getContentAsText()
Description copied from interface: IMimeMultipart
Return the text content as simple text.

Specified by:
getContentAsText in interface IMimeMultipart

fromHTML

public static MimeMultipart fromHTML(java.lang.Object value)
Returns value as a MimeMultipart


isSameAs

public boolean isSameAs(IMimeMultipart rval)
Description copied from interface: IMimeMultipart
Returns the position

Specified by:
isSameAs in interface IMimeMultipart

isHTMLConverted

public boolean isHTMLConverted()
Description copied from interface: IMimeMultipart
Returns true if the HTML is the result of a conversion that requires a user prompt

Specified by:
isHTMLConverted in interface IMimeMultipart

setHTMLConverted

public void setHTMLConverted(boolean isConverted)
Description copied from interface: IMimeMultipart
Specifies if the HTML is the result of a conversion that requires a user prompt

Specified by:
setHTMLConverted in interface IMimeMultipart