|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteConfigurationMail
The RemoteConfigurationMail interface provides methods to configure mail setting on JReport Server via RMI,
the mail setting works for sending mail related functions on JReport server like: schedule task that publishes to mail,
send notification mail, etc.
This is a RMI-based interface, invocation on method of this interface will bring a RMI call on associated JReport Server underlying.
| Method Summary | |
|---|---|
boolean |
getAuthentication()
Checks if the smtp server requires authentication for sending mails. |
java.lang.String |
getAuthenticationPassword()
Get login password, which is used when getAuthentication() return true |
java.lang.String |
getAuthenticationUser()
Get login user name, which is used when getAuthentication() return true |
int |
getDefaultMailFormat()
Gets the mail format sent out for the schedule of publishing to E-mail. |
boolean |
getEnableCompress()
Checks whether to compress the mail attachment. |
java.lang.String |
getEncoding()
Get the encoding for notification E-mail title and comments |
java.lang.String |
getMailBox()
Returns the address of the mail sender, for mails sent by JReport server. |
java.util.Vector |
getMailFormats()
Gets all mail formats. |
int |
getMailPort()
Returns the smtp mail server's port. |
java.lang.String |
getMailServer()
Returns the smtp mail server's name. |
int |
getMaxMailPage()
Gets the maximum page of the mail's attachment in PDF format |
int |
getMaxMailSize()
Gets the maximum size of the mail's attachment in PDF format |
int |
getSplitBy()
Gets the setting of splitting PDF attachment. |
boolean |
getSSL()
Checks if the smtp server requires SSL for sending mails. |
void |
setAuthentication(boolean isEnable)
Sets if the smtp server requires authentication for sending mails. |
void |
setAuthenticationPassword(java.lang.String pqssword)
Set login password, which is used when getAuthentication() return true |
void |
setAuthenticationUser(java.lang.String username)
Set login user name, which is used when getAuthentication() return true |
void |
setEnableCompress(boolean isEnable)
Sets whether to compress the mail attachment. |
void |
setEncoding(java.lang.String encoding)
Set the encoding for notification E-mail title and comments |
void |
setMailBox(java.lang.String mailBox)
Sets the address of the mail sender, for mails sent by JReport server. |
void |
setMailFormat(int mailFormat)
Sets the default mail format sent out for the schedule of publishing to E-mail. |
void |
setMailPort(int port)
Sets the smtp mail server's port. |
void |
setMailServer(java.lang.String smtpServerName)
Sets the smtp mail server's name. |
void |
setMaxMailPage(int page)
Sets the maximum page of the mail's attachment in PDF format. |
void |
setMaxMailSize(int size)
Sets the maximum size of the mail's attachment in PDF format. |
void |
setSplitBy(int split)
Setd whether to split PDF attachment by size or by page. |
void |
setSSL(boolean isEnable)
Sets if the smtp server requires SSL for sending mails. |
| Method Detail |
|---|
void setMailServer(java.lang.String smtpServerName)
throws java.rmi.RemoteException
smtpServerName - the smtp mail server's name.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
java.lang.String getMailServer()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setMailPort(int port)
throws java.rmi.RemoteException
port - the smtp mail server's port.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
int getMailPort()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setMailBox(java.lang.String mailBox)
throws java.rmi.RemoteException
mailBox - the address of the mail sender.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
java.lang.String getMailBox()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setMailFormat(int mailFormat)
throws java.rmi.RemoteException
mailFormat - the mail format sent out. The available values are:
0: E-mail Result in HTML E-mail Format, 1: E-mail Result in Plain Text E-mail Format,
2: Attachment in JReport Result Format, 3: Attachment in HTML Format,
4: Attachment in PDF Format, 5: Attachment in Excel Format, 6: Attachment in Text Format,
7: Attachment in RTF Format, 8: Attachment in XML Format, 9: Attachment in PostScript Format.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
int getDefaultMailFormat()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
java.util.Vector getMailFormats()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setEnableCompress(boolean isEnable)
throws java.rmi.RemoteException
isEnable - true if it enables to compress the mail, otherwise false.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
boolean getEnableCompress()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setMaxMailSize(int size)
throws java.rmi.RemoteException
setSplitBy() is invoked and the parameter value is SPLIT_BY_SIZE.
size - the maximum size of the mail's attachment in PDF format
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
int getMaxMailSize()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setMaxMailPage(int page)
throws java.rmi.RemoteException
setSplitBy() is invoked and the parameter value is SPLIT_BY_PAGE.
page - the maximum page of the mail's attachment in PDF format
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
int getMaxMailPage()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setSplitBy(int split)
throws java.rmi.RemoteException
split - indicates whether to split PDF by size or by page.
SPLIT_BY_SIZE(0) means split by size,
SPLIT_BY_PAGE(1) means split by page.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
int getSplitBy()
throws java.rmi.RemoteException
SPLIT_BY_SIZE(0) means split by size,
SPLIT_BY_PAGE(1) means split by page.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setAuthentication(boolean isEnable)
throws java.rmi.RemoteException
isEnable - whether smtp server requires authentication for sending mails.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
boolean getAuthentication()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setSSL(boolean isEnable)
throws java.rmi.RemoteException
isEnable - whether smtp server requires SSL for sending mails.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
boolean getSSL()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
java.lang.String getEncoding()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setEncoding(java.lang.String encoding)
throws java.rmi.RemoteException
encoding - encoding that want to set
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
java.lang.String getAuthenticationUser()
throws java.rmi.RemoteException
getAuthentication() return true
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setAuthenticationUser(java.lang.String username)
throws java.rmi.RemoteException
getAuthentication() return true
username - login user name.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
java.lang.String getAuthenticationPassword()
throws java.rmi.RemoteException
getAuthentication() return true
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
void setAuthenticationPassword(java.lang.String pqssword)
throws java.rmi.RemoteException
getAuthentication() return true
pqssword - login password
java.rmi.RemoteException - if communication-related error occurs during RMI call execution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||