public class JaxWsServiceExporter
extends java.lang.Object
Note that this exporter will only work if the JAX-WS runtime actually supports publishing with an address argument, i.e. if the JAX-WS runtime ships an internal HTTP server. This is the case with the JAX-WS runtime that's inclued in Sun's JDK 1.6 but not with the standalone JAX-WS 2.1 RI. You should supply a host that takes the form of "http://127.0.0.1", a port number, and an object that is annotated with the WebService annotation. The actual publication address will be appended to the base address. For example, a service named "orderService", will be published by default to http://127.0.0.1:8080/orderService. In addition, you may supply a 'deploy' boolean that controls whether or not the service should be exported when the start method is called. The default host is http://127.0.0.1 and the default port is 8080. By default, deploy is true. This class is not thread safe. It is intended to be used in a spring configuration xml.
WebService
,
Endpoint.publish(String)
Constructor and Description |
---|
JaxWsServiceExporter() |
Modifier and Type | Method and Description |
---|---|
void |
setDeploy(boolean deploy) |
void |
setEndpointProperties(java.util.Map<java.lang.String,java.lang.Object> endpointProperties)
Set the property bag for the endpoint, including properties such as
"javax.xml.ws.wsdl.service" or "javax.xml.ws.wsdl.port".
|
void |
setExecutor(java.util.concurrent.Executor executor)
Set the JDK concurrent executor to use for dispatching incoming requests
to exported service instances.
|
void |
setHost(java.lang.String host)
Takes the form of 'http://127.0.0.1'
|
void |
setPort(java.lang.Integer port) |
void |
setService(java.lang.Object service)
Must have a class-level WebService annotation
|
void |
start()
The start method.
|
void |
stop()
Stops the web service.
|
public void setEndpointProperties(java.util.Map<java.lang.String,java.lang.Object> endpointProperties)
Endpoint.setProperties(java.util.Map<java.lang.String, java.lang.Object>)
,
Endpoint.WSDL_SERVICE
,
Endpoint.WSDL_PORT
public void setExecutor(java.util.concurrent.Executor executor)
Endpoint.setExecutor(java.util.concurrent.Executor)
public void setHost(java.lang.String host)
host
- the host to setpublic void setPort(java.lang.Integer port)
port
- the port to setpublic void setService(java.lang.Object service)
service
- the service to setpublic void setDeploy(boolean deploy)
deploy
- the deploy to setpublic void start()
public void stop()