Class LocalComponentSession.LocalExternalComponent
java.lang.Object
org.jivesoftware.openfire.session.LocalComponentSession.LocalExternalComponent
- All Implemented Interfaces:
ComponentSession.ExternalComponent,org.xmpp.component.Component
- Enclosing class:
- LocalComponentSession
public static class LocalComponentSession.LocalExternalComponent
extends Object
implements ComponentSession.ExternalComponent
The ExternalComponent acts as a proxy of the remote connected component. Any Packet that is
sent to this component will be delivered to the real component on the other side of the
connection.
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.
- Author:
- Gaston Dombiak
-
Constructor Summary
ConstructorsConstructorDescriptionLocalExternalComponent(LocalComponentSession session, Connection connection) -
Method Summary
Modifier and TypeMethodDescriptiongetName()getType()voidinitialize(org.xmpp.packet.JID jid, org.xmpp.component.ComponentManager componentManager) voidprocessPacket(org.xmpp.packet.Packet packet) voidsetCategory(String category) voidvoidvoidshutdown()voidstart()toString()voidtrack(org.xmpp.packet.IQ iq)
-
Constructor Details
-
LocalExternalComponent
-
-
Method Details
-
processPacket
public void processPacket(org.xmpp.packet.Packet packet) - Specified by:
processPacketin interfaceorg.xmpp.component.Component
-
getName
- Specified by:
getNamein interfaceorg.xmpp.component.Component
-
getDescription
- Specified by:
getDescriptionin interfaceorg.xmpp.component.Component
-
setName
- Specified by:
setNamein interfaceComponentSession.ExternalComponent
-
getType
- Specified by:
getTypein interfaceComponentSession.ExternalComponent
-
setType
- Specified by:
setTypein interfaceComponentSession.ExternalComponent
-
getCategory
- Specified by:
getCategoryin interfaceComponentSession.ExternalComponent
-
setCategory
- Specified by:
setCategoryin interfaceComponentSession.ExternalComponent
-
getInitialSubdomain
- Specified by:
getInitialSubdomainin interfaceComponentSession.ExternalComponent
-
getSubdomains
- Specified by:
getSubdomainsin interfaceComponentSession.ExternalComponent
-
initialize
public void initialize(org.xmpp.packet.JID jid, org.xmpp.component.ComponentManager componentManager) - Specified by:
initializein interfaceorg.xmpp.component.Component
-
start
public void start()- Specified by:
startin interfaceorg.xmpp.component.Component
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.xmpp.component.Component
-
toString
-
track
public void track(org.xmpp.packet.IQ iq) -
getSession
- Returns:
- the session
-