|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.simpleaim.Operations
Manages connections to the AOL TOC server. Receives all FLAP packages and parses them for messages. Embeds messages into FLAP packages and sends them back to the TOC server. Normalizes user names. 'Roasts' passwords.
Field Summary | |
(package private) static boolean |
away
|
(package private) static java.lang.String |
awayMessage
|
(package private) static java.util.Hashtable |
buddyList
|
(package private) static java.lang.String |
buddyListSetup
|
(package private) static int |
DATA
|
static boolean |
DEBUG
|
(package private) static java.lang.String |
FLAPON
|
(package private) static boolean |
greeted
|
(package private) static java.io.InputStream |
in
|
(package private) static java.lang.String |
loginHost
|
(package private) static java.lang.String |
loginPort
|
(package private) static int |
MAX_DATA_IN
|
(package private) static java.io.OutputStream |
out
|
(package private) static java.lang.String |
password
|
(package private) static java.lang.String[] |
permitDenyList
|
(package private) static int |
permitDenyStatus
|
(package private) static java.lang.String |
replyToUser
|
(package private) static short |
seq
|
(package private) static int |
SIGNON
|
(package private) static java.net.Socket |
sock
|
(package private) static java.lang.String |
tocHost
|
(package private) static int |
tocPort
|
(package private) static java.lang.String |
username
|
(package private) static java.lang.String |
VERSION
|
Constructor Summary | |
Operations()
|
Method Summary | |
boolean |
connect()
Makes a connection to the TOC server. |
static java.lang.String |
decodeIM(java.lang.String str)
Returns a message with all HTML tags removed. |
static java.lang.String |
encodeIM(java.lang.String str)
Returns an IM encoded for AOLs servers. |
static java.lang.String |
normalize(java.lang.String name)
Normalizes a user name. |
static java.lang.String |
readFLAP()
Reads an incoming FLAP packet and returns the message. |
static void |
setPermitDenyStatus(int status)
Changes the permit/deny status and sends the new list to the server |
static void |
writeFLAP(int type,
java.lang.String str)
Writes an outgoing FLAP packet given the frame type and message. |
static void |
writeFLAPSIGNON()
Writes the FLAP SIGNON packet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean DEBUG
static final java.lang.String VERSION
static final java.lang.String FLAPON
static final int MAX_DATA_IN
static final int SIGNON
static final int DATA
static java.lang.String tocHost
static java.lang.String loginHost
static int tocPort
static java.lang.String loginPort
static java.net.Socket sock
static java.io.OutputStream out
static java.io.InputStream in
static short seq
static java.lang.String username
static java.lang.String password
static boolean greeted
static boolean away
static java.lang.String awayMessage
static java.lang.String replyToUser
static int permitDenyStatus
static java.lang.String buddyListSetup
static java.util.Hashtable buddyList
static java.lang.String[] permitDenyList
Constructor Detail |
public Operations()
Method Detail |
public boolean connect()
public static void writeFLAP(int type, java.lang.String str) throws java.io.IOException
type
- The frame type.str
- The message.
java.io.IOException
public static java.lang.String readFLAP() throws java.io.IOException
java.io.IOException
public static void writeFLAPSIGNON() throws java.io.IOException
java.io.IOException
public static java.lang.String decodeIM(java.lang.String str)
str
- The string containing HTML tags.
public static void setPermitDenyStatus(int status)
public static java.lang.String encodeIM(java.lang.String str)
str
- The message to encode.
public static java.lang.String normalize(java.lang.String name)
name
- The user name to normalize.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |