|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
threads.HttpBindThread
public class HttpBindThread
Class for transmitting stanzas over http-binding (JEP 124)
Field Summary | |
---|---|
static int |
DEFAULT_WAIT
|
protected boolean |
statusSet
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
HttpBindThread(StanzaReader _stanzaReader,
MidletEventListener events)
Constructor |
Method Summary | |
---|---|
protected void |
Authenticate(HttpNode x,
java.lang.String user,
java.lang.String pass,
java.lang.String domain)
authenticates the user with the most appropriate mechanism |
protected void |
initSession(java.lang.String addr,
java.lang.String domain,
java.lang.String user,
java.lang.String pass,
java.lang.String resource,
java.lang.String Status)
Initialize the session |
protected HttpNode |
readStanza()
reads the next non-empty stanza (blocking) |
void |
run()
Run Method of the thread |
static int |
strlen(java.lang.String s)
Find length in bytes of a string, akin to strlen vs wcslen � 2003, 2004 Vidar Holen www.vidarholen.net |
void |
terminate()
Tells the thread to terminate as soon as possible. |
byte[] |
unicodeToServer(java.lang.String s)
Unicode Support � 2003, 2004 Vidar Holen www.vidarholen.net |
void |
write(java.lang.String _s)
Implements the interface method |
protected void |
writeWithBody(java.lang.String mess)
|
Methods inherited from class java.lang.Thread |
---|
activeCount, currentThread, getName, getPriority, interrupt, isAlive, join, setPriority, sleep, start, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface threads.IWriterThread |
---|
start |
Field Detail |
---|
public static int DEFAULT_WAIT
protected boolean statusSet
Constructor Detail |
---|
public HttpBindThread(StanzaReader _stanzaReader, MidletEventListener events)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected HttpNode readStanza()
protected void initSession(java.lang.String addr, java.lang.String domain, java.lang.String user, java.lang.String pass, java.lang.String resource, java.lang.String Status) throws java.lang.Exception
java.lang.Exception
public void terminate()
terminate
in interface IWriterThread
public void write(java.lang.String _s)
write
in interface IWriterThread
_s
- protected void writeWithBody(java.lang.String mess)
protected void Authenticate(HttpNode x, java.lang.String user, java.lang.String pass, java.lang.String domain) throws java.lang.Exception
x
- featuresuser
- pass
- domain
-
java.lang.Exception
public byte[] unicodeToServer(java.lang.String s)
public static int strlen(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |