spring-framework / org.springframework.remoting.jaxws / SimpleHttpServerJaxWsServiceExporter

SimpleHttpServerJaxWsServiceExporter

@UsesSunHttpServer open class SimpleHttpServerJaxWsServiceExporter : AbstractJaxWsServiceExporter

Simple exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WS javax.jws.WebService 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.

Author
Juergen Hoeller

Since
2.5.5

See Also
javax.jws.WebServicejavax.xml.ws.Endpoint#publish(Object)SimpleJaxWsServiceExporter

Constructors

<init>

SimpleHttpServerJaxWsServiceExporter()

Simple exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WS javax.jws.WebService 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.

Functions

afterPropertiesSet

open fun afterPropertiesSet(): Unit

destroy

open fun destroy(): Unit

setAuthenticator

open fun setAuthenticator(authenticator: Authenticator): Unit

Register a common com.sun.net.httpserver.Authenticator to be applied to all detected javax.jws.WebService annotated beans.

setBacklog

open fun setBacklog(backlog: Int): Unit

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.

setBasePath

open fun setBasePath(basePath: String): Unit

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

open fun setFilters(filters: MutableList<Filter>): Unit

Register common com.sun.net.httpserver.Filter to be applied to all detected javax.jws.WebService annotated beans.

setHostname

open fun setHostname(hostname: String): Unit

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.

setPort

open fun setPort(port: Int): Unit

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.

setServer

open fun setServer(server: HttpServer): Unit

Specify an existing HTTP server to register the web service contexts with. This will typically be a server managed by the general Spring org.springframework.remoting.support.SimpleHttpServerFactoryBean.

Alternatively, configure a local HTTP server through the "port", "hostname" and "backlog" properties (or rely on the defaults there).

setShutdownDelay

open fun setShutdownDelay(shutdownDelay: Int): Unit

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.

Inherited Functions

publishEndpoints

open fun publishEndpoints(): Unit

Publish all javax.jws.WebService annotated beans in the containing BeanFactory.

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit

Obtains all web service beans and publishes them as JAX-WS endpoints.

setBindingType

open fun setBindingType(bindingType: String): Unit

Specify the binding type to use, overriding the value of the JAX-WS javax.xml.ws.BindingType annotation.

setEndpointFeatures

open fun setEndpointFeatures(vararg endpointFeatures: WebServiceFeature): Unit

Specify WebServiceFeature objects (e.g. as inner bean definitions) to apply to JAX-WS endpoint creation.

setEndpointProperties

open fun setEndpointProperties(endpointProperties: MutableMap<String, Any>): Unit

Set the property bag for the endpoint, including properties such as "javax.xml.ws.wsdl.service" or "javax.xml.ws.wsdl.port".

setExecutor

open fun setExecutor(executor: Executor): Unit

Set the JDK concurrent executor to use for dispatching incoming requests to exported service instances.