public class SOAPServer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SOAPServer.SOAPHandler
The default HTTP handler which handles SOAP-over-HTTP requests.
|
| Modifier and Type | Method and Description |
|---|---|
static SOAPServer |
get(HTTPBinding binding,
boolean keepAlive,
java.util.List supportedMethods,
boolean create)
Returns a SOAP server and the underlying HTTP server for the given address and port.
|
HTTPServer |
getHTTPServer()
Returns the underlying HTTP server.
|
void |
register(java.lang.String path,
SOAPServer.SOAPHandler handler)
Registers a HTTP path for a given
MessageReceiver. |
static void |
stopALLServers() |
MessageReceiver |
unregister(HTTPBinding binding)
Removes the registration of a
MessageReceiver for a given HTTP path. |
void |
unregisterAndStop() |
public static void stopALLServers()
public static SOAPServer get(HTTPBinding binding, boolean keepAlive, java.util.List supportedMethods, boolean create) throws java.io.IOException
address - the host address for the underlying HTTP server.port - the port for the underlying HTTP server.java.io.IOException - Throws exception if the HTTP server could not listen to the given address and port.public void unregisterAndStop()
throws java.io.IOException
java.io.IOExceptionpublic void register(java.lang.String path,
SOAPServer.SOAPHandler handler)
throws java.io.IOException
MessageReceiver.
The receiver will receive incoming SOAP messages which match the HTTP path.
path - HTTP path.receiver - the SOAP message receiverjava.io.IOExceptionpublic MessageReceiver unregister(HTTPBinding binding)
MessageReceiver for a given HTTP path.defaultPath - the HTTP path.MessageReceiver.public HTTPServer getHTTPServer()