|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ConsumerEndpoint
org.apache.servicemix.xmpp.XMPPReceiverEndpoint
public class XMPPReceiverEndpoint
This endpoint receives XMPP messages and events and sends them as xml message into the NMR to the defined target
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
logger |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, service, serviceUnit |
| Constructor Summary | |
|---|---|
XMPPReceiverEndpoint()
|
|
| Method Summary | |
|---|---|
org.jivesoftware.smack.filter.PacketFilter |
getFilter()
|
java.lang.String |
getHost()
|
XMPPMarshalerSupport |
getMarshaler()
|
java.lang.String |
getPassword()
|
int |
getPort()
|
java.lang.String |
getProxyHost()
|
java.lang.String |
getProxyPass()
|
java.lang.String |
getProxyPort()
|
java.lang.String |
getProxyType()
|
java.lang.String |
getProxyUser()
|
java.lang.String |
getResource()
|
java.lang.String |
getRoom()
|
java.lang.String |
getUser()
|
boolean |
isCreateAccount()
|
boolean |
isLogin()
|
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
|
void |
setCreateAccount(boolean createAccount)
Specify here if you want to create an account for the user if the user is currently not existing on the XMPP server. |
void |
setFilter(org.jivesoftware.smack.filter.PacketFilter filter)
Here you can define a PacketFilter to use for filtering XMPP packets. |
void |
setHost(java.lang.String host)
With that method you can specify the host name of the XMPP server as hostname or ip address. |
void |
setLogin(boolean login)
Here you can specify if the user should login to the server or not. |
void |
setMarshaler(XMPPMarshalerSupport marshaler)
With this method you can specify a marshaler class which provides the logic for converting an xmpp message into a normalized message. |
void |
setPassword(java.lang.String password)
This method sets the password for connecting to the XMPP server. |
void |
setPort(int port)
This method will set the port number for the XMPP connection. |
void |
setProxyHost(java.lang.String proxyHost)
Here you can specify the hostname or ip address of a proxy to be used to connect to the XMPP server. |
void |
setProxyPass(java.lang.String proxyPass)
If your proxy needs authentication you can specify here the user password. |
void |
setProxyPort(java.lang.String proxyPort)
Here you can specify the port of the proxy server. |
void |
setProxyType(java.lang.String proxyType)
Here you can specify the type of proxy you have. |
void |
setProxyUser(java.lang.String proxyUser)
If your proxy needs authentication you can specify here the user name. |
void |
setResource(java.lang.String resource)
Specify here the resource string to submit to the XMPP server. |
void |
setRoom(java.lang.String room)
Specify here an optional room to join. |
void |
setUser(java.lang.String user)
This method if used to specify the user name to use for connecting to the XMPP server. |
void |
start()
|
void |
stop()
|
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint |
|---|
activate, configureExchangeTarget, deactivate, getLocationURI, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XMPPReceiverEndpoint()
| Method Detail |
|---|
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class ConsumerEndpointjavax.jbi.management.DeploymentException
public void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exception
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class AbstractEndpointjava.lang.Exceptionpublic void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket in interface org.jivesoftware.smack.PacketListenerpublic XMPPMarshalerSupport getMarshaler()
public void setMarshaler(XMPPMarshalerSupport marshaler)
With this method you can specify a marshaler class which provides the
logic for converting an xmpp message into a normalized message. This class has
to implement the interface XMPPMarshalerSupport or another class which
implements it. If you don't specify a marshaler, the
DefaultXMPPMarshaler will be used.
marshaler - a class which implements XMPPMarshalerSupportpublic java.lang.String getHost()
public void setHost(java.lang.String host)
With that method you can specify the host name of the XMPP server as hostname or ip address.
host - the hostname or ip address of the XMPP serverpublic int getPort()
public void setPort(int port)
This method will set the port number for the XMPP connection. If nothing is defined the default XMPP port number 5222 will be used.
port - the port number of the XMPP serverpublic java.lang.String getUser()
public void setUser(java.lang.String user)
This method if used to specify the user name to use for connecting to the XMPP server. It is not required that this user already exists but if not then the server should allow registration of new users and this user should not already exist with another password.
user - the name of the user to use for connecting. for example: joepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
This method sets the password for connecting to the XMPP server.
password - the password for connecting to the XMPP serverpublic java.lang.String getResource()
public void setResource(java.lang.String resource)
Specify here the resource string to submit to the XMPP server. Usually you define the identifier of the XMPP client here.
resource - the resource identifier (for example: servicemix-xmpp)public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
Here you can specify the hostname or ip address of a proxy to be used to connect to the XMPP server. If you don't define this no proxy is used.
proxyHost - the hostname or ip address of the proxy to usepublic java.lang.String getProxyPort()
public void setProxyPort(java.lang.String proxyPort)
Here you can specify the port of the proxy server. If you do not define this the default port (3128) will be used.
proxyPort - the default proxy port number (default: 3128)public java.lang.String getProxyUser()
public void setProxyUser(java.lang.String proxyUser)
If your proxy needs authentication you can specify here the user name. Leave this undefined if your proxy does not need authentication.
proxyUser - the name of the user to authenticate with the proxypublic java.lang.String getProxyPass()
public void setProxyPass(java.lang.String proxyPass)
If your proxy needs authentication you can specify here the user password. Leave this undefined if your proxy does not need authentication.
proxyPass - the password of the user to authenticate with the proxypublic java.lang.String getProxyType()
public void setProxyType(java.lang.String proxyType)
Here you can specify the type of proxy you have. Possible values are:
NONE, HTTP, SOCKS4, SOCKS5
proxyType - the type of proxy (NONE, HTTP, SOCKS4, SOCKS5)public boolean isLogin()
public void setLogin(boolean login)
Here you can specify if the user should login to the server or not. Not logging in means that endpoint itself will be created but it will be inactive.
login - a flag if the process should login to the XMPP account (true / false)public org.jivesoftware.smack.filter.PacketFilter getFilter()
public void setFilter(org.jivesoftware.smack.filter.PacketFilter filter)
Here you can define a PacketFilter to use for filtering XMPP packets.
filter - a PacketFilter to use for filtering XMPP packetspublic boolean isCreateAccount()
public void setCreateAccount(boolean createAccount)
Specify here if you want to create an account for the user if the user is currently not existing on the XMPP server.
createAccount - flag if an account should be created if the user doesn't exist (true / false)public java.lang.String getRoom()
public void setRoom(java.lang.String room)
Specify here an optional room to join. If set, the user will join that room and listens to messages there.
room - the room to join or null if no room should be joined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||