diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-01-17 22:30:00 -0800 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-01-17 22:30:00 -0800 |
commit | 9358b2fda79ff8ef9ae712e76a05181536a2febd (patch) | |
tree | c84517654064d017de8083b0c68fdbf54481e700 /src/java/com/libmailcore/NNTPSession.java | |
parent | e2b178f73a516d50698e5b98e093d595aac34b2c (diff) |
Javadoc
Diffstat (limited to 'src/java/com/libmailcore/NNTPSession.java')
-rw-r--r-- | src/java/com/libmailcore/NNTPSession.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/java/com/libmailcore/NNTPSession.java b/src/java/com/libmailcore/NNTPSession.java index eb7d3d2e..c54291b7 100644 --- a/src/java/com/libmailcore/NNTPSession.java +++ b/src/java/com/libmailcore/NNTPSession.java @@ -12,61 +12,97 @@ public class NNTPSession extends NativeObject { super.finalize(); } + /** Sets the NNTP server hostname. */ public native void setHostname(String hostname); + /** Returns the NNTP server hostname. */ public native String hostname(); + /** Sets the port. */ public native void setPort(int port); + /** Returns the port. */ public native int port(); + /** Sets the username. */ public native void setUsername(String username); + /** Returns the username. */ public native String username(); + /** Sets the password. */ public native void setPassword(String password); + /** Returns the password. */ public native String password(); + /** + Set connection type (clear-text, SSL or STARTTLS). + @see ConnectionType + */ public native void setConnectionType(int connectionType); + /** + Returns connection type (clear-text, SSL or STARTTLS). + @see ConnectionType + */ public native int connectionType(); + /** Sets network timeout in seconds. */ public native void setTimeout(long seconds); + /** Returns network timeout in seconds. */ public native long timeout(); + /** Sets whether the certificate of the server should be checked. */ public native void setCheckCertificateEnabled(boolean enabled); + /** Returns whether the certificate of the server should be checked. */ public native boolean isCheckCertificateEnabled(); + /** Sets the connection logger. */ public void setConnectionLogger(ConnectionLogger logger) { connectionLogger = logger; setupNativeConnectionLogger(); } + /** Returns the connection logger. */ public ConnectionLogger connectionLogger() { return connectionLogger; } + /** Sets the IMAP operations queue listener. */ public void setOperationQueueListener(OperationQueueListener listener) { operationQueueListener = listener; setupNativeOperationQueueListener(); } + /** Returns the IMAP operations queue listener. */ public OperationQueueListener operationQueueListener() { return operationQueueListener; } + /** Returns whether the operation queue is running. */ public native boolean isOperationQueueRunning(); + /** Cancels all queued operations. */ public native void cancelAllOperations(); + /** Returns an operation to fetch the list of numbers of all articles of a newsgroup. */ public native NNTPFetchAllArticlesOperation fetchAllArticlesOperation(String group); + /** Returns an operation to fetch the headers of a given article. */ public native NNTPFetchHeaderOperation fetchHeaderOperation(String group, int idx); + /** Returns an operation to fetch the content of a given article. */ public native NNTPFetchArticleOperation fetchArticleOperation(String group, int idx); + /** Returns an operation to fetch the content of a given articl using the Message-ID. */ public native NNTPFetchArticleOperation fetchArticleByMessageIDOperation(String group, String messageID); + /** Returns an operation to fetch the summary headers of set of articles of a newsgroup. */ public native NNTPFetchOverviewOperation fetchOverviewOperationWithIndexes(String group, IndexSet indexes); + /** Returns an operation to fetch the server date. */ public native NNTPFetchServerTimeOperation fetchServerDateOperation(); + /** Returns an operation to fetch the list of all newsgroups. */ public native NNTPListNewsgroupsOperation listAllNewsgroupsOperation(); + /** Returns an operation to fetch the ist of default newsgroups. */ public native NNTPListNewsgroupsOperation listDefaultNewsgroupsOperation(); + /** Returns an operation to disconnect. */ public native NNTPOperation disconnectOperation(); + /** Returns an operation to check credentials. */ public native NNTPOperation checkAccountOperation(); private native void setupNative(); |