public class JabberProtocol extends java.lang.Object implements SocketHandler
| Modifier and Type | Class and Description |
|---|---|
class |
JabberProtocol.SAXReaderThread
Used by the low level protocol handler to read in the data.
|
| Modifier and Type | Field and Description |
|---|---|
protected JabberContentHandler |
contentHandler |
static java.lang.String |
DEFAULT_PARSER |
protected JabberErrorHandler |
errorHandler |
protected MessageRequestQueue |
queue |
protected JabberProtocol.SAXReaderThread |
reader |
protected alt.java.net.Socket |
socket |
protected static int |
SOCKETBUF |
| Constructor and Description |
|---|
JabberProtocol(JabberContentHandler contentHandler,
MessageRequestQueue queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(alt.java.net.Socket socket)
Handles the connection details, including handshaking and data processing.
|
void |
send(JabberMessage msg)
queues up the data and wait for thread to send out the data
|
void |
shutdown()
Shuts down the protocol
|
void |
start()
Does all the resetting before a connection begins
|
public static final java.lang.String DEFAULT_PARSER
protected static final int SOCKETBUF
protected MessageRequestQueue queue
protected JabberErrorHandler errorHandler
protected JabberContentHandler contentHandler
protected JabberProtocol.SAXReaderThread reader
protected alt.java.net.Socket socket
public JabberProtocol(JabberContentHandler contentHandler, MessageRequestQueue queue)
public void handle(alt.java.net.Socket socket)
throws java.io.IOException
SocketHandlerhandle in interface SocketHandlerjava.io.IOException - when any processing error occurspublic void shutdown()
shutdown in interface SocketHandlerpublic void start()
start in interface SocketHandlerpublic void send(JabberMessage msg)
Copyright © 2001-2005 Echomine. All Rights Reserved.