public class XMPPComponent extends org.xmpp.component.AbstractComponent implements PacketSender
| Constructor and Description |
|---|
XMPPComponent(String jid,
String password,
String server,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGetHandler(QueryHandler queryHandler) |
void |
addSetHandler(QueryHandler queryHandler) |
void |
connect() |
protected String |
discoInfoIdentityCategory() |
protected String |
discoInfoIdentityCategoryType() |
void |
disconnect() |
String |
getDescription() |
String |
getName() |
protected org.xmpp.packet.IQ |
handleIQGet(org.xmpp.packet.IQ iq) |
protected void |
handleIQResult(org.xmpp.packet.IQ iq) |
protected org.xmpp.packet.IQ |
handleIQSet(org.xmpp.packet.IQ iq) |
void |
process() |
void |
process(boolean block) |
void |
sendPacket(org.xmpp.packet.Packet packet) |
void |
setDescription(String description) |
void |
setDiscoInfoIdentityCategory(String discoInfoIdentityCategory) |
void |
setDiscoInfoIdentityCategoryType(String discoInfoIdentityCategoryType) |
void |
setName(String name) |
org.xmpp.packet.Packet |
syncSendPacket(org.xmpp.packet.Packet packet) |
discoInfoFeatureNamespaces, getDomain, getJID, handleDiscoInfo, handleDiscoItems, handleEntityTime, handleIQError, handleLastActivity, handleMessage, handlePing, handlePresence, initialize, postComponentShutdown, postComponentStart, preComponentShutdown, preComponentStart, processPacket, send, servesLocalUsersOnly, shutdown, startpublic void process()
public void process(boolean block)
public void addSetHandler(QueryHandler queryHandler)
public void addGetHandler(QueryHandler queryHandler)
protected org.xmpp.packet.IQ handleIQSet(org.xmpp.packet.IQ iq)
throws Exception
handleIQSet in class org.xmpp.component.AbstractComponentExceptionprotected org.xmpp.packet.IQ handleIQGet(org.xmpp.packet.IQ iq)
throws Exception
handleIQGet in class org.xmpp.component.AbstractComponentExceptionpublic void setDescription(String description)
description - the description to setpublic String getDescription()
getDescription in interface org.xmpp.component.ComponentgetDescription in class org.xmpp.component.AbstractComponentpublic String getName()
getName in interface org.xmpp.component.ComponentgetName in class org.xmpp.component.AbstractComponentpublic void setName(String name)
name - the name to setprotected String discoInfoIdentityCategory()
discoInfoIdentityCategory in class org.xmpp.component.AbstractComponentpublic void setDiscoInfoIdentityCategory(String discoInfoIdentityCategory)
discoInfoIdentityCategory - the discoInfoIdentityCategory to setprotected String discoInfoIdentityCategoryType()
discoInfoIdentityCategoryType in class org.xmpp.component.AbstractComponentpublic void setDiscoInfoIdentityCategoryType(String discoInfoIdentityCategoryType)
discoInfoIdentityCategoryType - the discoInfoIdentityCategoryType to setpublic void sendPacket(org.xmpp.packet.Packet packet)
sendPacket in interface PacketSenderpublic void connect()
throws org.xmpp.component.ComponentException
org.xmpp.component.ComponentExceptionpublic void disconnect()
throws org.xmpp.component.ComponentException
org.xmpp.component.ComponentExceptionprotected void handleIQResult(org.xmpp.packet.IQ iq)
handleIQResult in class org.xmpp.component.AbstractComponentpublic org.xmpp.packet.Packet syncSendPacket(org.xmpp.packet.Packet packet)
syncSendPacket in interface PacketSenderCopyright © 2014. All Rights Reserved.