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() |
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.Component
public String getName()
getName
in interface org.xmpp.component.Component
public String getDescription()
getDescription
in interface org.xmpp.component.Component
public void setName(String name)
setName
in interface ComponentSession.ExternalComponent
public String getType()
getType
in interface ComponentSession.ExternalComponent
public void setType(String type)
setType
in interface ComponentSession.ExternalComponent
public String getCategory()
getCategory
in interface ComponentSession.ExternalComponent
public void setCategory(String category)
setCategory
in interface ComponentSession.ExternalComponent
public String getInitialSubdomain()
getInitialSubdomain
in interface ComponentSession.ExternalComponent
public Collection<String> getSubdomains()
getSubdomains
in interface ComponentSession.ExternalComponent
public void initialize(org.xmpp.packet.JID jid, org.xmpp.component.ComponentManager componentManager)
initialize
in interface org.xmpp.component.Component
public void start()
start
in interface org.xmpp.component.Component
public void shutdown()
shutdown
in interface org.xmpp.component.Component
public void track(org.xmpp.packet.IQ iq)
Copyright © 2003–2019 Ignite Realtime. All rights reserved.