|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.jabberwookie.Stream
|
+--com.jabberwookie.Component2Server
Implements the required methods to establish a connection to a Jabber server as a component. This allows you to create new services for the server.
| Field Summary |
| Fields inherited from class com.jabberwookie.Stream |
chunkProcessor, chunkQueue, connected, connectionId, DEBUG, in, iqListener, mListener, ns, out, outWriter, parserT, pListener, processor, PROCESSOR_WAIT_TIME, unListener, waitingIds |
| Constructor Summary | |
Component2Server(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String secret)
Creates a new instance of Component2Server. |
|
Component2Server(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String secret,
Processor processor)
Creates a new instance of Component2Server. |
|
| Method Summary | |
void |
close()
Closes the stream. |
void |
docStart(java.lang.String tag,
java.util.Hashtable attrs)
|
void |
incomingChunk(Chunk chunk)
From UnrecognizedChunkListener, needed for authentication. |
boolean |
open(java.lang.String serverName,
int timeoutSecs)
Opens the stream and attempts to authenticate itself. |
void |
setUnrecogizedChunkListener(UnrecognizedChunkListener listener)
Since Jabber components are set to receive data from specific namespaces only this overrides the default Stream.setUnrecogizedChunkListener(com.jabberwookie.UnrecognizedChunkListener) to do nothing. |
| Methods inherited from class com.jabberwookie.Stream |
cData, chunkStart, chunkStop, docStop, dtdData, elementStart, elementStop, getConnectionId, isConnected, processChunk, processingInstruction, send, send, setAllListeners, setIQListener, setMessageListener, setNamespaces, setPresenceListener, setProcessor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Component2Server(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String secret)
secret - The secret used to authenticate yourself to
the Jabber server.
public Component2Server(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String secret,
Processor processor)
Stream.Stream(InputStream,OutputStream,Processor)
and Stream.setProcessor(Processor) for more information about
the Processor.
secret - The secret used to authenticate yourself to
the Jabber server.| Method Detail |
public void setUnrecogizedChunkListener(UnrecognizedChunkListener listener)
Stream.setUnrecogizedChunkListener(com.jabberwookie.UnrecognizedChunkListener) to do nothing.
setUnrecogizedChunkListener in class Stream
public boolean open(java.lang.String serverName,
int timeoutSecs)
throws java.io.IOException
open in class StreamserverName - timeoutSecs -
java.io.IOExceptionpublic void close()
close in class Stream
public void docStart(java.lang.String tag,
java.util.Hashtable attrs)
docStart in class Streampublic void incomingChunk(Chunk chunk)
incomingChunk in interface UnrecognizedChunkListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||