public class LocalJaxWsServiceFactory
extends java.lang.Object
Service
references.
Uses the JAX-WS Service.create(java.net.URL, javax.xml.namespace.QName)
factory API underneath.
Serves as base class for LocalJaxWsServiceFactoryBean
as well as
JaxWsPortClientInterceptor
and JaxWsPortProxyFactoryBean
.
Service
,
LocalJaxWsServiceFactoryBean
,
JaxWsPortClientInterceptor
,
JaxWsPortProxyFactoryBean
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Executor |
executor |
private javax.xml.ws.handler.HandlerResolver |
handlerResolver |
private java.lang.String |
namespaceUri |
private javax.xml.ws.WebServiceFeature[] |
serviceFeatures |
private java.lang.String |
serviceName |
private java.net.URL |
wsdlDocumentUrl |
Constructor and Description |
---|
LocalJaxWsServiceFactory() |
Modifier and Type | Method and Description |
---|---|
javax.xml.ws.Service |
createJaxWsService()
Create a JAX-WS Service according to the parameters of this factory.
|
java.lang.String |
getNamespaceUri()
Return the namespace URI of the service.
|
protected javax.xml.namespace.QName |
getQName(java.lang.String name)
Return a QName for the given name, relative to the namespace URI
of this factory, if given.
|
java.lang.String |
getServiceName()
Return the name of the service.
|
java.net.URL |
getWsdlDocumentUrl()
Return the URL of the WSDL document that describes the service.
|
void |
setExecutor(java.util.concurrent.Executor executor)
Set the JDK concurrent executor to use for asynchronous executions
that require callbacks.
|
void |
setHandlerResolver(javax.xml.ws.handler.HandlerResolver handlerResolver)
Set the JAX-WS HandlerResolver to use for all proxies and dispatchers
created through this factory.
|
void |
setNamespaceUri(java.lang.String namespaceUri)
Set the namespace URI of the service.
|
void |
setServiceFeatures(javax.xml.ws.WebServiceFeature... serviceFeatures)
Specify WebServiceFeature objects (e.g.
|
void |
setServiceName(java.lang.String serviceName)
Set the name of the service to look up.
|
void |
setWsdlDocumentResource(Resource wsdlDocumentResource)
Set the WSDL document URL as a
Resource . |
void |
setWsdlDocumentUrl(java.net.URL wsdlDocumentUrl)
Set the URL of the WSDL document that describes the service.
|
private java.net.URL wsdlDocumentUrl
private java.lang.String namespaceUri
private java.lang.String serviceName
private javax.xml.ws.WebServiceFeature[] serviceFeatures
private java.util.concurrent.Executor executor
private javax.xml.ws.handler.HandlerResolver handlerResolver
public void setWsdlDocumentUrl(java.net.URL wsdlDocumentUrl)
setWsdlDocumentResource(Resource)
public void setWsdlDocumentResource(Resource wsdlDocumentResource) throws java.io.IOException
Resource
.java.io.IOException
public java.net.URL getWsdlDocumentUrl()
public void setNamespaceUri(java.lang.String namespaceUri)
public java.lang.String getNamespaceUri()
public void setServiceName(java.lang.String serviceName)
public java.lang.String getServiceName()
public void setServiceFeatures(javax.xml.ws.WebServiceFeature... serviceFeatures)
Note: This mechanism requires JAX-WS 2.2 or higher.
Service.create(QName, WebServiceFeature...)
public void setExecutor(java.util.concurrent.Executor executor)
Service.setExecutor(java.util.concurrent.Executor)
public void setHandlerResolver(javax.xml.ws.handler.HandlerResolver handlerResolver)
Service.setHandlerResolver(javax.xml.ws.handler.HandlerResolver)
public javax.xml.ws.Service createJaxWsService()
protected javax.xml.namespace.QName getQName(java.lang.String name)
setNamespaceUri(java.lang.String)