public class Socks5BytestreamsModule extends Object implements XmppModule, PacketWriterAware, ObservableAware
| Modifier and Type | Class and Description |
|---|---|
static class |
Socks5BytestreamsModule.ActivateCallback |
| Modifier and Type | Field and Description |
|---|---|
static EventType |
StreamhostsEventType |
static String |
XMLNS_BS |
| Constructor and Description |
|---|
Socks5BytestreamsModule(SessionObject sessionObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(EventType eventType,
Listener listener) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
process(Element element)
Main method of module.
|
void |
process(IQ iq) |
void |
removeListener(Listener listener) |
void |
requestActivate(JID host,
String sid,
JID jid,
Socks5BytestreamsModule.ActivateCallback callback) |
void |
requestStreamhosts(JID host,
StreamhostsCallback callback) |
void |
sendStreamhosts(JID recipient,
String sid,
List<Streamhost> hosts,
AsyncCallback callback) |
void |
sendStreamhostUsed(JID to,
String id,
String sid,
Streamhost streamhost) |
void |
setObservable(Observable parentObservable)
Set the new instance of Observable.
|
void |
setPacketWriter(PacketWriter packetWriter)
Set PacketWriter.
|
public static final String XMLNS_BS
public static final EventType StreamhostsEventType
public Socks5BytestreamsModule(SessionObject sessionObject)
public Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModulepublic void process(Element element) throws XMPPException, XMLException, JaxmppException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionJaxmppExceptionpublic void process(IQ iq) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void removeListener(Listener listener)
public void requestActivate(JID host, String sid, JID jid, Socks5BytestreamsModule.ActivateCallback callback) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void requestStreamhosts(JID host, StreamhostsCallback callback) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void sendStreamhosts(JID recipient, String sid, List<Streamhost> hosts, AsyncCallback callback) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void sendStreamhostUsed(JID to, String id, String sid, Streamhost streamhost) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void setPacketWriter(PacketWriter packetWriter)
PacketWriterAwaresetPacketWriter in interface PacketWriterAwarepacketWriter - PacketWriterpublic void setObservable(Observable parentObservable)
ObservableAwaresetObservable in interface ObservableAwareparentObservable - new instance of ObservableCopyright © 2006–2014 Tigase. All rights reserved.