类 SimpleHttpServerJaxWsServiceExporter
- java.lang.Object
- org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter
- org.springframework.remoting.jaxws.SimpleHttpServerJaxWsServiceExporter
- 所有已实现的接口:
Aware
,BeanFactoryAware
,DisposableBean
,InitializingBean
@Deprecated @UsesSunHttpServer public class SimpleHttpServerJaxWsServiceExporter extends AbstractJaxWsServiceExporter
已过时。as of Spring Framework 5.1, in favor ofSimpleJaxWsServiceExporter
Simple exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WSWebService
annotation) and exporting them through the HTTP server included in Sun's JDK 1.6. The full address for each service will consist of the server's base address with the service name appended (e.g. "http://localhost:8080/OrderService").Note that this exporter will only work on Sun's JDK 1.6 or higher, as well as on JDKs that ship Sun's entire class library as included in the Sun JDK. For a portable JAX-WS exporter, have a look at
SimpleJaxWsServiceExporter
.- 从以下版本开始:
- 2.5.5
- 作者:
- Juergen Hoeller
- 另请参阅:
WebService
,Endpoint.publish(Object)
,SimpleJaxWsServiceExporter
构造器概要
构造器 构造器 说明 SimpleHttpServerJaxWsServiceExporter()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
已过时。Immediately publish all endpoints when fully configured.protected com.sun.net.httpserver.HttpContext
buildHttpContext(Endpoint endpoint, String serviceName)
已过时。Build the HttpContext for the given endpoint.protected String
calculateEndpointPath(Endpoint endpoint, String serviceName)
已过时。Calculate the full endpoint path for the given endpoint.void
destroy()
已过时。Stops all published endpoints, taking the web services offline.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
setAuthenticator(com.sun.net.httpserver.Authenticator authenticator)
已过时。Register a commonAuthenticator
to be applied to all detectedWebService
annotated beans.void
setBacklog(int backlog)
已过时。Specify the HTTP server's TCP backlog.void
setBasePath(String basePath)
已过时。Set the base path for context publication.void
setFilters(List<com.sun.net.httpserver.Filter> filters)
已过时。Register commonFilters
to be applied to all detectedWebService
annotated beans.void
setHostname(String hostname)
已过时。Specify the HTTP server's hostname to bind to.void
setPort(int port)
已过时。Specify the HTTP server's port.void
setServer(com.sun.net.httpserver.HttpServer server)
已过时。Specify an existing HTTP server to register the web service contexts with.void
setShutdownDelay(int shutdownDelay)
已过时。Specify the number of seconds to wait until HTTP exchanges have completed when shutting down the HTTP server.从类继承的方法 org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter
createEndpoint, publishEndpoints, setBeanFactory, setBindingType, setEndpointFeatures, setEndpointProperties, setExecutor
构造器详细资料
SimpleHttpServerJaxWsServiceExporter
public SimpleHttpServerJaxWsServiceExporter()
已过时。
方法详细资料
setServer
public void setServer(com.sun.net.httpserver.HttpServer server)
已过时。Specify an existing HTTP server to register the web service contexts with. This will typically be a server managed by the general SpringSimpleHttpServerFactoryBean
.Alternatively, configure a local HTTP server through the
"port"
,"hostname"
and"backlog"
properties (or rely on the defaults there).
setPort
public void setPort(int port)
已过时。Specify the HTTP server's port. Default is 8080.Only applicable for a locally configured HTTP server. Ignored when the
"server"
property has been specified.
setHostname
public void setHostname(String hostname)
已过时。Specify the HTTP server's hostname to bind to. Default is localhost; can be overridden with a specific network address to bind to.Only applicable for a locally configured HTTP server. Ignored when the
"server"
property has been specified.
setBacklog
public void setBacklog(int backlog)
已过时。Specify the HTTP server's TCP backlog. Default is -1, indicating the system's default value.Only applicable for a locally configured HTTP server. Ignored when the
"server"
property has been specified.
setShutdownDelay
public void setShutdownDelay(int shutdownDelay)
已过时。Specify the number of seconds to wait until HTTP exchanges have completed when shutting down the HTTP server. Default is 0.Only applicable for a locally configured HTTP server. Ignored when the
"server"
property has been specified.
setBasePath
public void setBasePath(String basePath)
已过时。Set the base path for context publication. Default is "/".For each context publication path, the service name will be appended to this base address. E.g. service name "OrderService" -> "/OrderService".
setFilters
public void setFilters(List<com.sun.net.httpserver.Filter> filters)
已过时。Register commonFilters
to be applied to all detectedWebService
annotated beans.
setAuthenticator
public void setAuthenticator(com.sun.net.httpserver.Authenticator authenticator)
已过时。Register a commonAuthenticator
to be applied to all detectedWebService
annotated beans.
afterPropertiesSet
public void afterPropertiesSet() throws Exception
已过时。从类复制的说明:AbstractJaxWsServiceExporter
Immediately publish all endpoints when fully configured.- 指定者:
afterPropertiesSet
在接口中InitializingBean
- 覆盖:
afterPropertiesSet
在类中AbstractJaxWsServiceExporter
- 抛出:
Exception
- in the event of misconfiguration (such as failure to set an essential property) or if initialization fails for any other reason- 另请参阅:
AbstractJaxWsServiceExporter.publishEndpoints()
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
buildHttpContext
protected com.sun.net.httpserver.HttpContext buildHttpContext(Endpoint endpoint, String serviceName)
已过时。Build the HttpContext for the given endpoint.- 参数:
endpoint
- the JAX-WS Provider Endpoint objectserviceName
- the given service name- 返回:
- the fully populated HttpContext
calculateEndpointPath
protected String calculateEndpointPath(Endpoint endpoint, String serviceName)
已过时。Calculate the full endpoint path for the given endpoint.- 参数:
endpoint
- the JAX-WS Provider Endpoint objectserviceName
- the given service name- 返回:
- the full endpoint path
destroy
public void destroy()
已过时。从类复制的说明:AbstractJaxWsServiceExporter
Stops all published endpoints, taking the web services offline.- 指定者:
destroy
在接口中DisposableBean
- 覆盖:
destroy
在类中AbstractJaxWsServiceExporter