public class SOAPoverUDPClient extends UDPClient
| Modifier and Type | Class and Description |
|---|---|
static class |
SOAPoverUDPClient.DuplicateMessageDiscarder |
static class |
SOAPoverUDPClient.SOAPoverUDPHandler
UDP datagram handler implementation for SOAP messages.
|
| Constructor and Description |
|---|
SOAPoverUDPClient(int localPort,
AddressFilter filter,
UDPDatagramHandler handler,
java.lang.String comManId) |
SOAPoverUDPClient(IPAddress localAddress,
int localPort,
NetworkInterface iface,
AddressFilter filter,
UDPDatagramHandler handler,
java.lang.String comManId) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the SOAP-over-UDP client.
|
void |
ensureOpen() |
NetworkInterface |
getIface() |
IPAddress |
getLocalAddress() |
int |
getLocalPort() |
boolean |
isClosed()
Returns
true if the underlying UDP client is closed and cannot be used for a
request, or false if the client can still be used. |
void |
send(Message message,
ByteArrayBuffer buffer,
IPConnectionInfo connectionInfo,
AttributedURI optionalMessageId)
Creates a UDP datagram socket and uses this socket to send the given SOAP message.
|
getIPAddress, getPort, hasListener, send, timedOutisDisabled, toStringpublic SOAPoverUDPClient(int localPort,
AddressFilter filter,
UDPDatagramHandler handler,
java.lang.String comManId)
throws java.io.IOException
java.io.IOExceptionpublic SOAPoverUDPClient(IPAddress localAddress, int localPort, NetworkInterface iface, AddressFilter filter, UDPDatagramHandler handler, java.lang.String comManId) throws java.io.IOException
java.io.IOExceptionpublic void send(Message message, ByteArrayBuffer buffer, IPConnectionInfo connectionInfo, AttributedURI optionalMessageId) throws java.io.IOException
The SOAP message will be sent twice as described in the DPWS 1.1 specification.
dstAddress - destination address of the SOAP message.dstPort - destination port of the SOAP message.ifaceName - message - SOAP message to send.handler - this handler will handle the incoming UDP datagram packets.java.io.IOExceptionpublic void close()
throws java.io.IOException
No UDP datagram packets can be sent.
public boolean isClosed()
true if the underlying UDP client is closed and cannot be used for a
request, or false if the client can still be used.public void ensureOpen()
throws java.io.IOException
ensureOpen in class UDPClientjava.io.IOExceptionpublic int getLocalPort()
public IPAddress getLocalAddress()
public NetworkInterface getIface()