|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.walluck.oscar.handlers.directim.DirectIM
public class DirectIM
Handles DirectIM (ODC) connections. This should probably be split in half as is done with FileTransfer (OFT) connections.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DirectIM(AIMSession sess,
byte[] cookie,
String screenname,
String host,
int port,
boolean wantResponse)
Creates a new DirectIM. |
Method Summary | |
---|---|
void |
end()
End this Direct IM session. |
boolean |
isListener()
Get the value of listener. |
boolean |
isSender()
Get the value of sender. |
void |
run()
Run method for the file transfer thread. |
void |
sendIM(int charset,
int charSubset,
String msg)
Send a direct IM message. |
void |
sendTyping(boolean typing)
Send a typing notification. |
void |
setListener(boolean listener)
Set the value of listener. |
void |
setSender(boolean sender)
Set the value of sender. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirectIM(AIMSession sess, byte[] cookie, String screenname, String host, int port, boolean wantResponse)
sess
- the oscar sessioncookie
- the cookiescreenname
- the screennamehost
- the hostport
- the portwantResponse
- whether ot not you want an ack for this requestMethod Detail |
---|
public void setListener(boolean listener)
listener
- Value to assign to listener.public boolean isListener()
public void setSender(boolean sender)
sender
- Value to assign to sender.public boolean isSender()
public void end()
public void sendTyping(boolean typing) throws IOException
typing
- set to true if typing, false otherwise
IOException
- if an error occurspublic void sendIM(int charset, int charSubset, String msg) throws IOException
charset
- the charsetcharSubset
- the charSubsetmsg
- the message to send
IOException
- if an error occurspublic void run()
run
in interface Runnable
run
in class Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |