|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.transport.xmpp.XmppMessageSender
public class XmppMessageSender
WebServiceMessageSender
implementation that uses XMPP Message
s.
Requires a connection
to be set.
xmpp:toThe to represents a Jabber ID.
Field Summary | |
---|---|
static String |
DEFAULT_MESSAGE_ENCODING
Default encoding used to read from and write to Message messages. |
static long |
DEFAULT_RECEIVE_TIMEOUT
Default timeout for receive operations: -1 indicates a blocking receive without timeout. |
Constructor Summary | |
---|---|
XmppMessageSender()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
WebServiceConnection |
createConnection(URI uri)
Create a new WebServiceConnection to the specified URI. |
protected String |
createThread()
|
void |
setConnection(org.jivesoftware.smack.XMPPConnection connection)
Sets the XMPPConnection . |
void |
setMessageEncoding(String messageEncoding)
Sets the encoding used to read from Message object. |
void |
setReceiveTimeout(long receiveTimeout)
Set the timeout to use for receive calls. |
boolean |
supports(URI uri)
Does this WebServiceMessageSender support the supplied URI? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_RECEIVE_TIMEOUT
public static final String DEFAULT_MESSAGE_ENCODING
Message
messages.
Constructor Detail |
---|
public XmppMessageSender()
Method Detail |
---|
public void setConnection(org.jivesoftware.smack.XMPPConnection connection)
XMPPConnection
. Setting this property is required.
public void setReceiveTimeout(long receiveTimeout)
PacketCollector.nextResult(long)
public void setMessageEncoding(String messageEncoding)
Message
object. Defaults to
UTF-8
.
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public WebServiceConnection createConnection(URI uri) throws IOException
WebServiceMessageSender
WebServiceConnection
to the specified URI.
createConnection
in interface WebServiceMessageSender
uri
- the URI to open a connection to
IOException
- in case of I/O errorspublic boolean supports(URI uri)
WebServiceMessageSender
WebServiceMessageSender
support the supplied URI?
supports
in interface WebServiceMessageSender
uri
- the URI to be checked
true
if this WebServiceMessageSender
supports the supplied URIprotected String createThread()
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |