public class SOAPoverUDPServer
extends java.lang.Object
This server uses the UDPServer to listen for incoming UDP datagram packets which
contains SOAP messages.
The incoming datagram will be handled by the internal UDPDatagramHandler if a MessageReceiver is set. Uses the #setReceiver(MessageReceiver) method to set the correct
receiver.
| Constructor and Description |
|---|
SOAPoverUDPServer(IPAddress ipAddress,
int port,
NetworkInterface iface,
AddressFilter filter,
IncomingUDPReceiver handler)
Create a SOAP-over-UDP Server with given address and port for a specified interface.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPort() |
IncomingUDPReceiver |
getReceiver()
Returns the handler configured on this UDP server instance.
|
boolean |
isRunning()
Returns
true if the SOAP-over-UDP server is running, false otherwise. |
void |
start()
Starts the SOAP-over-UDP server.
|
void |
stop()
Stops the SOAP-over-UDP server.
|
public SOAPoverUDPServer(IPAddress ipAddress, int port, NetworkInterface iface, AddressFilter filter, IncomingUDPReceiver handler) throws java.io.IOException
address - the addressport - the portifaceName - the name of the interfacehandler - the handler which will receive incoming UDP datagrams.java.io.IOExceptionpublic void start()
throws java.io.IOException
java.io.IOExceptionpublic void stop()
throws java.io.IOException
java.io.IOExceptionpublic boolean isRunning()
true if the SOAP-over-UDP server is running, false otherwise.true if the SOAP-over-UDP server is running, false otherwise.public IncomingUDPReceiver getReceiver()
public int getPort()