|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentManager
Manages components.
Component
Method Summary | |
---|---|
void |
addComponent(String subdomain,
Component component)
Adds a component. |
Log |
getLog()
Returns a Log instance, which can be used by components for logging error, warning, info, and debug messages. |
String |
getProperty(String name)
Returns a property value specified by name. |
String |
getServerName()
Returns the domain of the XMPP server. |
boolean |
isExternalMode()
Returns true if components managed by this component manager are external components connected to the server over a network connection. |
IQ |
query(Component component,
IQ packet,
int timeout)
Sends an IQ packet to the XMPP server and waits to get an IQ of type result or error. |
void |
query(Component component,
IQ packet,
IQResultListener listener)
Sends an IQ packet to the server and returns immediately. |
void |
removeComponent(String subdomain)
Removes a component. |
void |
sendPacket(Component component,
Packet packet)
Sends a packet to the XMPP server. |
void |
setProperty(String name,
String value)
Sets a property value. |
Method Detail |
---|
void addComponent(String subdomain, Component component) throws ComponentException
Component.initialize(org.xmpp.packet.JID, ComponentManager)
method will be called on the component. The subdomain specifies the address of
the component on a server. For example, if the subdomain is "test" and the XMPP
server is at "example.com", then the component's address would be "test.example.com".
subdomain
- the subdomain of the component's address.component
- the component.
ComponentException
void removeComponent(String subdomain) throws ComponentException
Component.shutdown()
method will be called on the
component.
subdomain
- the subdomain of the component's address.
ComponentException
void sendPacket(Component component, Packet packet) throws ComponentException
Components are trusted by the server and may use any value in from address. Usually the from address uses the component's address as the domain but this is not required.
component
- the component sending the packet.packet
- the packet to send.
ComponentException
IQ query(Component component, IQ packet, int timeout) throws ComponentException
Components are trusted by the server and may use any value in from address. Usually the from address uses the component's address as the domain but this is not required.
component
- the component sending the packet.packet
- the IQ packet to send.timeout
- the number of milliseconds to wait before returning an IQ error.
ComponentException
void query(Component component, IQ packet, IQResultListener listener) throws ComponentException
component
- the component sending the packet.packet
- the IQ packet to send.listener
- the listener that will be invoked when an answer is received.
ComponentException
String getProperty(String name)
name
- the property name.
void setProperty(String name, String value)
name
- the property name.value
- the property value.String getServerName()
boolean isExternalMode()
Log getLog()
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |