public class ExternalComponent extends Object implements org.xmpp.component.Component
Constructor and Description |
---|
ExternalComponent(org.xmpp.component.Component component,
ExternalComponentManager manager) |
ExternalComponent(org.xmpp.component.Component component,
ExternalComponentManager manager,
int maxThreads) |
Modifier and Type | Method and Description |
---|---|
void |
connect(String host,
int port,
String subdomain)
Deprecated.
|
void |
connect(String host,
int port,
String subdomain,
boolean startEncrypted)
Generates a connection with the server and tries to authenticate.
|
void |
connectionLost()
Notification message that the connection with the server was lost unexpectedly.
|
org.xmpp.component.Component |
getComponent() |
String |
getDescription() |
String |
getDomain()
Returns the domain provided by this component in the connected server.
|
String |
getName() |
String |
getSubdomain()
Returns the subdomain provided by this component in the connected server.
|
void |
initialize(org.xmpp.packet.JID jid,
org.xmpp.component.ComponentManager componentManager) |
void |
processPacket(org.xmpp.packet.Packet packet) |
void |
send(org.xmpp.packet.Packet packet) |
void |
shutdown() |
void |
start() |
public ExternalComponent(org.xmpp.component.Component component, ExternalComponentManager manager)
public ExternalComponent(org.xmpp.component.Component component, ExternalComponentManager manager, int maxThreads)
@Deprecated public void connect(String host, int port, String subdomain) throws org.xmpp.component.ComponentException
host
- the host to connect with.port
- the port to use.subdomain
- the subdomain that this component will be handling.org.xmpp.component.ComponentException
- if an error happens during the connection and authentication steps.public void connect(String host, int port, String subdomain, boolean startEncrypted) throws org.xmpp.component.ComponentException
host
- the host to connect with.port
- the port to use.subdomain
- the subdomain that this component will be handling.startEncrypted
- true if sockets are started in TLS/SSL mode, otherwise false.org.xmpp.component.ComponentException
- if an error happens during the connection and authentication steps.public org.xmpp.component.Component getComponent()
public String getName()
getName
in interface org.xmpp.component.Component
public String getDescription()
getDescription
in interface org.xmpp.component.Component
public String getDomain()
public String getSubdomain()
public void processPacket(org.xmpp.packet.Packet packet)
processPacket
in interface org.xmpp.component.Component
public void send(org.xmpp.packet.Packet packet)
public void initialize(org.xmpp.packet.JID jid, org.xmpp.component.ComponentManager componentManager) throws org.xmpp.component.ComponentException
initialize
in interface org.xmpp.component.Component
org.xmpp.component.ComponentException
public void start()
start
in interface org.xmpp.component.Component
public void shutdown()
shutdown
in interface org.xmpp.component.Component
public void connectionLost()
Copyright © 2004–2016 Ignite Realtime. All rights reserved.