|
Openfire 3.4.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.openfire.session.LocalComponentSession.LocalExternalComponent
public static class LocalComponentSession.LocalExternalComponent
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.
| Constructor Summary | |
|---|---|
LocalComponentSession.LocalExternalComponent(LocalComponentSession session,
Connection connection)
|
|
| Method Summary | |
|---|---|
String |
getCategory()
|
String |
getDescription()
Returns the description of this component. |
String |
getInitialSubdomain()
|
String |
getName()
Returns the name of this component. |
Collection<String> |
getSubdomains()
|
String |
getType()
|
void |
initialize(JID jid,
ComponentManager componentManager)
Initializes this component with a ComponentManager and the JID that this component is available at (e.g. |
void |
processPacket(Packet packet)
Processes a packet sent to this Component. |
void |
setCategory(String category)
|
void |
setName(String name)
|
void |
setType(String type)
|
void |
shutdown()
Shuts down this component. |
void |
start()
Notification message indicating that the component will start receiving incoming packets. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalComponentSession.LocalExternalComponent(LocalComponentSession session,
Connection connection)
| Method Detail |
|---|
public void processPacket(Packet packet)
Component
processPacket in interface Componentpacket - the packet.ComponentManager.sendPacket(Component, Packet)public String getName()
Component
getName in interface Componentpublic String getDescription()
Component
getDescription in interface 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.ExternalComponent
public void initialize(JID jid,
ComponentManager componentManager)
ComponentThe initialization code must not rely on receiving packets from the server since the component has not been fully initialized yet. This means that at this point the component must not rely on information that is obtained from the server such us discovered items.
initialize in interface Componentjid - the XMPP address that this component is available at.componentManager - the component manager.public void start()
ComponentIt is likely that most of the component will leave this method empty.
start in interface Componentpublic void shutdown()
Component
shutdown in interface Componentpublic String toString()
toString in class Object
|
Openfire 3.4.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||