public class POPSession extends NativeObject
Constructor and Description |
---|
POPSession() |
Modifier and Type | Method and Description |
---|---|
int |
authType()
Returns authentication type.
|
void |
cancelAllOperations()
Cancels all queued operations.
|
POPOperation |
checkAccountOperation()
Returns an operation to check credentials.
|
ConnectionLogger |
connectionLogger()
Returns the connection logger.
|
int |
connectionType()
Returns connection type (clear-text, SSL or STARTTLS).
|
POPOperation |
deleteMessagesOperation(IndexSet indexes)
Returns an operation to delete messages.
|
POPOperation |
disconnectOperation()
Returns an operation to disconnect.
|
POPFetchHeaderOperation |
fetchHeaderOperation(int index)
Returns an operation to fetch headers of a given message.
|
POPFetchMessageOperation |
fetchMessageOperation(int index)
Returns an operation to fetch the content of a given message.
|
POPFetchMessagesOperation |
fetchMessagesOperation()
Returns an operation to fetch the list of messages.
|
protected void |
finalize() |
java.lang.String |
hostname()
Returns the POP server hostname.
|
boolean |
isCheckCertificateEnabled()
Returns whether the certificate of the server should be checked.
|
boolean |
isOperationQueueRunning()
Returns whether the operation queue is running.
|
POPOperation |
noopOperation()
Returns a POP NOOP operation.
|
OperationQueueListener |
operationQueueListener()
Returns the IMAP operations queue listener.
|
java.lang.String |
password()
Returns the password.
|
int |
port()
Returns the port.
|
void |
setAuthType(int authType)
Sets the authentication type.
|
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 POP 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 setAuthType(int authType)
AuthType
public int authType()
AuthType
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 POPFetchMessagesOperation fetchMessagesOperation()
public POPFetchHeaderOperation fetchHeaderOperation(int index)
public POPFetchMessageOperation fetchMessageOperation(int index)
public POPOperation deleteMessagesOperation(IndexSet indexes)
public POPOperation disconnectOperation()
public POPOperation checkAccountOperation()
public POPOperation noopOperation()