public static class LocalComponentSession.LocalExternalComponent extends Object implements ComponentSession.ExternalComponent
An ExternalComponent will be added as a route in the RoutingTable for each connected external component. This implies that when the server receives a packet whose domain matches the external component services address then a route to the external component will be used and the packet will be forwarded to the component on the other side of the connection.
| Constructor and Description |
|---|
LocalExternalComponent(LocalComponentSession session,
Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory() |
String |
getDescription() |
String |
getInitialSubdomain() |
String |
getName() |
LocalComponentSession |
getSession() |
Collection<String> |
getSubdomains() |
String |
getType() |
void |
initialize(org.xmpp.packet.JID jid,
org.xmpp.component.ComponentManager componentManager) |
void |
processPacket(org.xmpp.packet.Packet packet) |
void |
setCategory(String category) |
void |
setName(String name) |
void |
setType(String type) |
void |
shutdown() |
void |
start() |
String |
toString() |
void |
track(org.xmpp.packet.IQ iq) |
public LocalExternalComponent(LocalComponentSession session, Connection connection)
public void processPacket(org.xmpp.packet.Packet packet)
processPacket in interface org.xmpp.component.Componentpublic String getName()
getName in interface org.xmpp.component.Componentpublic String getDescription()
getDescription in interface org.xmpp.component.Componentpublic void setName(String name)
setName in interface ComponentSession.ExternalComponentpublic String getType()
getType in interface ComponentSession.ExternalComponentpublic void setType(String type)
setType in interface ComponentSession.ExternalComponentpublic String getCategory()
getCategory in interface ComponentSession.ExternalComponentpublic void setCategory(String category)
setCategory in interface ComponentSession.ExternalComponentpublic String getInitialSubdomain()
getInitialSubdomain in interface ComponentSession.ExternalComponentpublic Collection<String> getSubdomains()
getSubdomains in interface ComponentSession.ExternalComponentpublic void initialize(org.xmpp.packet.JID jid,
org.xmpp.component.ComponentManager componentManager)
initialize in interface org.xmpp.component.Componentpublic void start()
start in interface org.xmpp.component.Componentpublic void shutdown()
shutdown in interface org.xmpp.component.Componentpublic void track(org.xmpp.packet.IQ iq)
public LocalComponentSession getSession()
Copyright © 2003–2019 Ignite Realtime. All rights reserved.