|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.moblog.Mailbox
Mailbox.
This file is a container for everything the thread will need to connect to and to store into.
Constructor Summary | |
Mailbox()
Default constructor. |
|
Mailbox(java.lang.String hostname,
java.lang.String userid,
java.lang.String password)
Construct a new mailbox for a given hostname, user, and password. |
Method Summary | |
java.util.Map |
getAttachmentMimeTypes()
Retrieve the Map of attachment mime-types |
java.lang.String |
getAttachmentMimeTypesAsStringList()
Retrieve the accepted attachment MIME types as a string list |
java.util.Map |
getAuthorizedAddresses()
Retrieve the authorized e-mail from addresses for this mailbox |
BlogUser |
getBlogUser()
Retrive the BlogUser for this mailbox |
java.lang.String |
getCategoryName()
Retrieve the category name for new moblog entries |
java.lang.String |
getEntriesDirectory()
Retrive the directory where new blog entries will be created |
java.lang.String |
getFolder()
Retrieve the mail folder |
java.lang.String |
getHostName()
Retrieve the mailbox hostname |
java.lang.String |
getIgnoreExpression()
Retrieve the regular expression for ignoring bits of text |
java.util.Map |
getImageMimeTypes()
Retrieve the Map of image mime-types |
java.lang.String |
getImageMimeTypesAsStringList()
Retrieve the accepted image MIME types as a string list |
java.lang.String |
getOutputDirectory()
Retrieve the output directory where attachments will be written |
java.lang.String |
getPassword()
Retrieve the mailbox user password |
java.lang.String |
getSecretWord()
Retrieve the secret word for this mailbox |
java.util.Map |
getTextMimeTypes()
Retrieve the Map of text mime-types |
java.lang.String |
getTextMimeTypesAsStringList()
Retrieve the accepted text MIME types as a string list |
java.lang.String |
getUrlPrefix()
Retrieve the URL prefix for linking to attachments |
java.lang.String |
getUserId()
Retreive the mailbox user id |
boolean |
isEnabled()
Retrieve whether or not this mailbox is enabled |
void |
setAttachmentMimeTypes(java.util.Map attachmentMimeTypes)
Set the Map of attachment mime-types |
void |
setAuthorizedAddresses(java.util.Map authorizedAddresses)
Set the authorized e-mail from addresses for this mailbox |
void |
setBlogUser(BlogUser user)
Set the BlogUser for this mailbox |
void |
setCategoryName(java.lang.String categoryName)
Set the category name for new moblog entries |
void |
setEnabled(boolean enabled)
Set whether or not this mailbox is enabled |
void |
setEntriesDirectory(java.lang.String entriesDirectory)
Set the directory where new blog entries will be created |
void |
setFolder(java.lang.String folder)
Set the mail folder |
void |
setHostName(java.lang.String hostName)
Set the mailbox hostname |
void |
setIgnoreExpression(java.lang.String ignoreExpression)
Set the regular expression for ignoring bits of text |
void |
setImageMimeTypes(java.util.Map imageMimeTypes)
Set the Map of image mime-types |
void |
setOutputDirectory(java.lang.String outputDirectory)
Set the output directory where attachments will be written |
void |
setPassword(java.lang.String password)
Set the mailbox user password |
void |
setSecretWord(java.lang.String secretWord)
Set the secret word for this mailbox. |
void |
setTextMimeTypes(java.util.Map textMimeTypes)
Set the Map of text mime-types |
void |
setUrlPrefix(java.lang.String urlPrefix)
Set the URL prefix for linking to attachments |
void |
setUserId(java.lang.String userId)
Set the mailbox user id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Mailbox()
public Mailbox(java.lang.String hostname, java.lang.String userid, java.lang.String password)
hostname
- Mailbox hostnameuserid
- Mailbox user idpassword
- Mailbox user passwordMethod Detail |
public java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
hostName
- Mailbox hostname (e.g. mail.domain.com)public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- Mailbox user idpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- Mailbox user passwordpublic java.lang.String getFolder()
public void setFolder(java.lang.String folder)
folder
- Mail folderpublic java.lang.String getOutputDirectory()
public void setOutputDirectory(java.lang.String outputDirectory)
outputDirectory
- Output directorypublic java.lang.String getUrlPrefix()
public void setUrlPrefix(java.lang.String urlPrefix)
urlPrefix
- (e.g. http://www.blog.com/resources/)public java.lang.String getEntriesDirectory()
public void setEntriesDirectory(java.lang.String entriesDirectory)
entriesDirectory
- Entries directorypublic java.lang.String getCategoryName()
public void setCategoryName(java.lang.String categoryName)
categoryName
- Category namepublic boolean isEnabled()
true
if the mailbox is enabled, false
otherwisepublic void setEnabled(boolean enabled)
enabled
- true
if the mailbox is enabled, false
otherwisepublic BlogUser getBlogUser()
BlogUser
for this mailbox
BlogUser
public void setBlogUser(BlogUser user)
BlogUser
for this mailbox
user
- BlogUser
public java.util.Map getImageMimeTypes()
Map
of image mime-types
Map
of image mime-typespublic java.lang.String getImageMimeTypesAsStringList()
public void setImageMimeTypes(java.util.Map imageMimeTypes)
Map
of image mime-types
imageMimeTypes
- Map
of image mime-typespublic java.util.Map getAttachmentMimeTypes()
Map
of attachment mime-types
Map
of image mime-typespublic java.lang.String getAttachmentMimeTypesAsStringList()
public void setAttachmentMimeTypes(java.util.Map attachmentMimeTypes)
Map
of attachment mime-types
attachmentMimeTypes
- Map
of attachment mime-typespublic java.util.Map getTextMimeTypes()
Map
of text mime-types
Map
of image mime-typespublic java.lang.String getTextMimeTypesAsStringList()
public void setTextMimeTypes(java.util.Map textMimeTypes)
Map
of text mime-types
textMimeTypes
- Map
of text mime-typespublic java.lang.String getSecretWord()
public void setSecretWord(java.lang.String secretWord)
secretWord
- Secret word which must be present at the start of the subject of the e-mailpublic java.util.Map getAuthorizedAddresses()
public void setAuthorizedAddresses(java.util.Map authorizedAddresses)
authorizedAddresses
- Authorized e-mail from addresses for this mailboxpublic java.lang.String getIgnoreExpression()
public void setIgnoreExpression(java.lang.String ignoreExpression)
ignoreExpression
- Regular expression for ignoring bits of text
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |