|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.model.JwmaMessagePartImpl
Class implementing the JwmaMessagePart model.
Method Summary | |
static JwmaMessagePartImpl |
createJwmaMessagePartImpl(int number)
Creates a JwmaMessagePartImpl instance with a given part number. |
static JwmaMessagePartImpl |
createJwmaMessagePartImpl(javax.mail.Part part,
int number)
Creates a JwmaMessagePartImpl instance from a given javax.mail.Part instance. |
java.lang.String |
getContentType()
Returns a String representing the content type of this message part. |
java.lang.String |
getDescription()
Returns a String representing the description of this message part. |
java.lang.String |
getName()
Returns a String representing the name of this message part. |
javax.mail.Part |
getPart()
Gets the javax.mail.Part wrapped by this instance. |
int |
getPartNumber()
Returns an int representing the number of this message part. |
int |
getSize()
Returns an int representing the size of this message part in bytes. |
java.lang.String |
getTextContent()
|
boolean |
isMimeType(java.lang.String type)
Tests if this JwmaMessagePart is of the given type. |
void |
setContentType(java.lang.String type)
Sets the content-type (mime) of this JwmaMessagePart. |
void |
setDescription(java.lang.String description)
Sets the description of this JwmaMessagePart. |
void |
setName(java.lang.String name)
Sets the name of this JwmaMessagePart. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getPartNumber()
JwmaMessagePart
This number is the unique identifier for a part of a message.
getPartNumber
in interface JwmaMessagePart
public boolean isMimeType(java.lang.String type)
JwmaMessagePart
isMimeType
in interface JwmaMessagePart
type
- the Mime type as String.public java.lang.String getContentType()
JwmaMessagePart
getContentType
in interface JwmaMessagePart
public javax.mail.Part getPart()
public java.lang.String getTextContent()
public void setContentType(java.lang.String type)
type
- the content type of this JwmaMessagePart
as String.public int getSize()
JwmaMessagePart
getSize
in interface JwmaMessagePart
public java.lang.String getName()
JwmaMessagePart
getName
in interface JwmaMessagePart
public void setName(java.lang.String name)
name
- the name of this JwmaMessagePart
as String.public java.lang.String getDescription()
JwmaMessagePart
getDescription
in interface JwmaMessagePart
public void setDescription(java.lang.String description)
description
- of this JwmaMessagePart
as String.public static JwmaMessagePartImpl createJwmaMessagePartImpl(javax.mail.Part part, int number) throws JwmaException
part
- a javax.mail.Part instance.number
- the number of the part as int.
JwmaException
- if it fails to create the new instance.public static JwmaMessagePartImpl createJwmaMessagePartImpl(int number)
number
- the number of the part as int.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |