public class NNTPSession extends NativeObject
Constructor and Description |
---|
NNTPSession() |
Modifier and Type | Method and Description |
---|---|
void |
cancelAllOperations()
Cancels all queued operations.
|
NNTPOperation |
checkAccountOperation()
Returns an operation to check credentials.
|
ConnectionLogger |
connectionLogger()
Returns the connection logger.
|
int |
connectionType()
Returns connection type (clear-text, SSL or STARTTLS).
|
NNTPOperation |
disconnectOperation()
Returns an operation to disconnect.
|
NNTPFetchAllArticlesOperation |
fetchAllArticlesOperation(java.lang.String group)
Returns an operation to fetch the list of numbers of all articles of a newsgroup.
|
NNTPFetchArticleOperation |
fetchArticleByMessageIDOperation(java.lang.String group,
java.lang.String messageID)
Returns an operation to fetch the content of a given articl using the Message-ID.
|
NNTPFetchArticleOperation |
fetchArticleOperation(java.lang.String group,
int idx)
Returns an operation to fetch the content of a given article.
|
NNTPFetchHeaderOperation |
fetchHeaderOperation(java.lang.String group,
int idx)
Returns an operation to fetch the headers of a given article.
|
NNTPFetchOverviewOperation |
fetchOverviewOperationWithIndexes(java.lang.String group,
IndexSet indexes)
Returns an operation to fetch the summary headers of set of articles of a newsgroup.
|
NNTPFetchServerTimeOperation |
fetchServerDateOperation()
Returns an operation to fetch the server date.
|
protected void |
finalize() |
java.lang.String |
hostname()
Returns the NNTP server hostname.
|
boolean |
isCheckCertificateEnabled()
Returns whether the certificate of the server should be checked.
|
boolean |
isOperationQueueRunning()
Returns whether the operation queue is running.
|
NNTPListNewsgroupsOperation |
listAllNewsgroupsOperation()
Returns an operation to fetch the list of all newsgroups.
|
NNTPListNewsgroupsOperation |
listDefaultNewsgroupsOperation()
Returns an operation to fetch the ist of default newsgroups.
|
OperationQueueListener |
operationQueueListener()
Returns the IMAP operations queue listener.
|
java.lang.String |
password()
Returns the password.
|
int |
port()
Returns the port.
|
void |
setCheckCertificateEnabled(boolean enabled)
Sets whether the certificate of the server should be checked.
|
void |
setConnectionLogger(ConnectionLogger logger)
Sets the connection logger.
|
void |
setConnectionType(int connectionType)
Set connection type (clear-text, SSL or STARTTLS).
|
void |
setHostname(java.lang.String hostname)
Sets the NNTP server hostname.
|
void |
setOperationQueueListener(OperationQueueListener listener)
Sets the IMAP operations queue listener.
|
void |
setPassword(java.lang.String password)
Sets the password.
|
void |
setPort(int port)
Sets the port.
|
void |
setTimeout(long seconds)
Sets network timeout in seconds.
|
void |
setUsername(java.lang.String username)
Sets the username.
|
long |
timeout()
Returns network timeout in seconds.
|
java.lang.String |
username()
Returns the username.
|
clone, initWithNative, readObject, toString, writeObject
protected void finalize() throws java.lang.Throwable
finalize
in class NativeObject
java.lang.Throwable
public void setHostname(java.lang.String hostname)
public java.lang.String hostname()
public void setPort(int port)
public int port()
public void setUsername(java.lang.String username)
public java.lang.String username()
public void setPassword(java.lang.String password)
public java.lang.String password()
public void setConnectionType(int connectionType)
ConnectionType
public int connectionType()
ConnectionType
public void setTimeout(long seconds)
public long timeout()
public void setCheckCertificateEnabled(boolean enabled)
public boolean isCheckCertificateEnabled()
public void setConnectionLogger(ConnectionLogger logger)
public ConnectionLogger connectionLogger()
public void setOperationQueueListener(OperationQueueListener listener)
public OperationQueueListener operationQueueListener()
public boolean isOperationQueueRunning()
public void cancelAllOperations()
public NNTPFetchAllArticlesOperation fetchAllArticlesOperation(java.lang.String group)
public NNTPFetchHeaderOperation fetchHeaderOperation(java.lang.String group, int idx)
public NNTPFetchArticleOperation fetchArticleOperation(java.lang.String group, int idx)
public NNTPFetchArticleOperation fetchArticleByMessageIDOperation(java.lang.String group, java.lang.String messageID)
public NNTPFetchOverviewOperation fetchOverviewOperationWithIndexes(java.lang.String group, IndexSet indexes)
public NNTPFetchServerTimeOperation fetchServerDateOperation()
public NNTPListNewsgroupsOperation listAllNewsgroupsOperation()
public NNTPListNewsgroupsOperation listDefaultNewsgroupsOperation()
public NNTPOperation disconnectOperation()
public NNTPOperation checkAccountOperation()