public class JabberDispatcher extends Object implements MessageDispatcher
Constructor and Description |
---|
JabberDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dispatch(TavernaRun ignored,
String messageSubject,
String messageContent,
String targetParameter)
Dispatch a message to a recipient.
|
String |
getName() |
boolean |
isAvailable() |
void |
setHost(String service) |
void |
setPassword(String pass) |
void |
setResource(String resource) |
void |
setUsername(String user) |
public String getName()
getName
in interface MessageDispatcher
public void setResource(String resource)
resource
- The XMPP resource to use when connecting the server. This
defaults to "TavernaServer".public void setHost(String service)
service
- The XMPP service URL.public void setUsername(String user)
user
- The user identity to use with the XMPP service.public void setPassword(String pass)
pass
- The password to use with the XMPP service.@PreDestroy public void close()
public boolean isAvailable()
isAvailable
in interface MessageDispatcher
public void dispatch(TavernaRun ignored, String messageSubject, String messageContent, String targetParameter) throws Exception
MessageDispatcher
dispatch
in interface MessageDispatcher
ignored
- The workflow run that produced the message.messageSubject
- The subject of the message to send.messageContent
- The plain-text content of the message to send.targetParameter
- A description of where it is to go.Exception
- If anything goes wrong.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.