|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.clients.POP3Client
public class POP3Client
| Constructor Summary | |
|---|---|
POP3Client(java.lang.String pop3Server,
int port,
java.lang.String connectionProfile)
Creates pop3Client ready to use. |
|
| Method Summary | |
|---|---|
void |
close()
Finishes POP3Cliet processing. |
boolean |
delete(int num)
Erases message on server |
java.lang.String |
getMessage(int num)
Returns String message |
java.io.InputStream |
getMessageAsStream(int num)
Opens InputStream with recieved message. |
int[][] |
list()
Dumps list of messages on server and their size in octets. |
boolean |
openPOP3(java.lang.String user,
java.lang.String password)
Executes login to POP3 server |
java.lang.String |
top(int num,
int lines)
Returns expected number of rows of message and his head. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public POP3Client(java.lang.String pop3Server,
int port,
java.lang.String connectionProfile)
pop3Server - server address, i.e.: pop3.google.com or is possible to use IP addressport - standard value 110connectionProfile - GPRS profile or CSD connection| Method Detail |
|---|
public boolean openPOP3(java.lang.String user,
java.lang.String password)
user - password -
public int[][] list()
public java.lang.String getMessage(int num)
num - id. of message returned by LIST command.
public java.io.InputStream getMessageAsStream(int num)
num - message id.
public java.lang.String top(int num,
int lines)
num - message id.lines -
public boolean delete(int num)
num -
public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||