类 SimpleJaxWsServiceExporter
- java.lang.Object
- org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter
- org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter
- 所有已实现的接口:
Aware
,BeanFactoryAware
,DisposableBean
,InitializingBean
public class SimpleJaxWsServiceExporter extends AbstractJaxWsServiceExporter
Simple exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WSWebService
annotation) and exporting them with a configured base address (by default "http://localhost:8080/") using the JAX-WS provider's built-in publication support. The full address for each service will consist of the base address with the service name appended (e.g. "http://localhost:8080/OrderService").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.
- 从以下版本开始:
- 2.5
- 作者:
- Juergen Hoeller
- 另请参阅:
WebService
,Endpoint.publish(String)
字段概要
字段 修饰符和类型 字段 说明 static String
DEFAULT_BASE_ADDRESS
The default base address.
构造器概要
构造器 构造器 说明 SimpleJaxWsServiceExporter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String
calculateEndpointAddress(Endpoint endpoint, String serviceName)
Calculate the full endpoint address for the given endpoint.protected void
publishEndpoint(Endpoint endpoint, WebService annotation)
Actually publish the given endpoint.protected void
publishEndpoint(Endpoint endpoint, WebServiceProvider annotation)
Actually publish the given provider endpoint.void
setBaseAddress(String baseAddress)
Set the base address for exported services.从类继承的方法 org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter
afterPropertiesSet, createEndpoint, destroy, publishEndpoints, setBeanFactory, setBindingType, setEndpointFeatures, setEndpointProperties, setExecutor
字段详细资料
DEFAULT_BASE_ADDRESS
public static final String DEFAULT_BASE_ADDRESS
The default base address.- 另请参阅:
- 常量字段值
构造器详细资料
SimpleJaxWsServiceExporter
public SimpleJaxWsServiceExporter()
方法详细资料
setBaseAddress
public void setBaseAddress(String baseAddress)
Set the base address for exported services. Default is "http://localhost:8080/".For each actual publication address, the service name will be appended to this base address. E.g. service name "OrderService" -> "http://localhost:8080/OrderService".
publishEndpoint
protected void publishEndpoint(Endpoint endpoint, WebService annotation)
从类复制的说明:AbstractJaxWsServiceExporter
Actually publish the given endpoint. To be implemented by subclasses.- 指定者:
publishEndpoint
在类中AbstractJaxWsServiceExporter
- 参数:
endpoint
- the JAX-WS Endpoint objectannotation
- the service bean's WebService annotation
publishEndpoint
protected void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation)
从类复制的说明:AbstractJaxWsServiceExporter
Actually publish the given provider endpoint. To be implemented by subclasses.- 指定者:
publishEndpoint
在类中AbstractJaxWsServiceExporter
- 参数:
endpoint
- the JAX-WS Provider Endpoint objectannotation
- the service bean's WebServiceProvider annotation
calculateEndpointAddress
protected String calculateEndpointAddress(Endpoint endpoint, String serviceName)
Calculate the full endpoint address for the given endpoint.- 参数:
endpoint
- the JAX-WS Provider Endpoint objectserviceName
- the given service name- 返回:
- the full endpoint address