public class EndpointImpl extends Endpoint implements InterceptorProvider, Configurable, AutoCloseable
Modifier and Type | Field and Description |
---|---|
static String |
CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY
This property controls whether the 'publishEndpoint' permission is checked
using only the AccessController (i.e.
|
static String |
CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER |
WSDL_PORT, WSDL_SERVICE
Constructor and Description |
---|
EndpointImpl(Bus bus,
Object implementor) |
EndpointImpl(Bus b,
Object implementor,
JaxWsServerFactoryBean sf) |
EndpointImpl(Bus b,
Object i,
String bindingUri) |
EndpointImpl(Bus b,
Object i,
String bindingUri,
String wsdl) |
EndpointImpl(Bus b,
Object i,
String bindingUri,
String wsdl,
WebServiceFeature[] f) |
EndpointImpl(Bus b,
Object i,
String bindingUri,
WebServiceFeature[] features) |
EndpointImpl(Object implementor) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkProperties() |
protected void |
checkPublishable()
|
protected void |
checkPublishPermission() |
void |
close() |
protected void |
doPublish(String addr)
Performs the publication action by setting up a
Server
instance based on this endpoint's configuration. |
String |
getAddress() |
String |
getBeanName()
Get the configurable object's Bean name
|
Binding |
getBinding() |
BindingConfiguration |
getBindingConfig() |
String |
getBindingUri() |
Bus |
getBus() |
DataBinding |
getDataBinding() |
EndpointContext |
getEndpointContext() |
QName |
getEndpointName() |
<T extends EndpointReference> |
getEndpointReference(Class<T> clazz,
Element... referenceParameters) |
EndpointReference |
getEndpointReference(Element... referenceParameters) |
Executor |
getExecutor() |
List<Feature> |
getFeatures() |
List<Handler> |
getHandlers() |
Object |
getImplementor() |
Class<?> |
getImplementorClass()
Gets the class of the implementor.
|
List<Interceptor<? extends Message>> |
getInFaultInterceptors()
Returns the list of interceptors attached to the incoming fault interceptor
chain of the object.
|
List<Interceptor<? extends Message>> |
getInInterceptors()
Returns the list of interceptors attached to the incoming interceptor
chain of the object.
|
Invoker |
getInvoker() |
List<Source> |
getMetadata() |
List<Interceptor<? extends Message>> |
getOutFaultInterceptors()
Returns the list of interceptors attached to the outgoing fault interceptor
chain of the object.
|
List<Interceptor<? extends Message>> |
getOutInterceptors()
Returns the list of interceptors attached to the outgoing interceptor
chain of the object.
|
Map<String,Object> |
getProperties() |
String |
getPublishedEndpointUrl()
The published endpoint url is used for excplicitely specifying the url of the
endpoint that would show up the generated wsdl definition, when the service is
brought on line.
|
List<String> |
getSchemaLocations() |
ServerImpl |
getServer() |
ServerImpl |
getServer(String addr) |
JaxWsServerFactoryBean |
getServerFactory() |
Service |
getService() |
JaxWsServiceFactoryBean |
getServiceFactory() |
QName |
getServiceName() |
String |
getTransportId() |
String |
getWsdlLocation() |
boolean |
isPublished() |
void |
publish() |
void |
publish(HttpContext context) |
void |
publish(Object arg0)
This implementation performs no action except to check the publish permission.
|
void |
publish(String addr) |
void |
setAddress(String address) |
void |
setBindingConfig(BindingConfiguration config) |
void |
setBindingUri(String binding) |
void |
setBus(Bus b) |
void |
setDataBinding(DataBinding dataBinding) |
void |
setEndpointContext(EndpointContext ctxt) |
void |
setEndpointName(QName endpointName) |
void |
setExecutor(Executor executor) |
void |
setFeatures(List<? extends Feature> features) |
void |
setHandlers(List<Handler> h) |
void |
setImplementorClass(Class<?> implementorClass) |
void |
setInFaultInterceptors(List<Interceptor<? extends Message>> interceptors) |
void |
setInInterceptors(List<Interceptor<? extends Message>> interceptors) |
void |
setInvoker(Invoker invoker) |
void |
setMetadata(List<Source> metadata) |
void |
setOutFaultInterceptors(List<Interceptor<? extends Message>> interceptors) |
void |
setOutInterceptors(List<Interceptor<? extends Message>> interceptors) |
void |
setProperties(Map<String,Object> properties) |
void |
setPublishedEndpointUrl(String publishedEndpointUrl) |
void |
setSchemaLocations(List<String> schemaLocations) |
protected void |
setServerFactory(JaxWsServerFactoryBean bean) |
void |
setServiceFactory(JaxWsServiceFactoryBean sf) |
void |
setServiceName(QName serviceName) |
void |
setTransportId(String transportId) |
void |
setWsdlLocation(String wsdlLocation) |
void |
stop() |
public static final String CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY
public static final String CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER
public EndpointImpl(Object implementor)
public EndpointImpl(Bus b, Object implementor, JaxWsServerFactoryBean sf)
public EndpointImpl(Bus b, Object i, String bindingUri, String wsdl)
b
- i
- The implementor object.bindingUri
- The URI of the Binding being used. Optional.wsdl
- The URL of the WSDL for the service, if different than the URL specified on the
WebService annotation. Optional.public EndpointImpl(Bus b, Object i, String bindingUri, String wsdl, WebServiceFeature[] f)
public EndpointImpl(Bus b, Object i, String bindingUri, WebServiceFeature[] features)
public void setBus(Bus b)
public Bus getBus()
public Binding getBinding()
getBinding
in class Endpoint
public void setExecutor(Executor executor)
setExecutor
in class Endpoint
public Executor getExecutor()
getExecutor
in class Endpoint
public Service getService()
public JaxWsServiceFactoryBean getServiceFactory()
public Object getImplementor()
getImplementor
in class Endpoint
public Class<?> getImplementorClass()
public List<Source> getMetadata()
getMetadata
in class Endpoint
public Map<String,Object> getProperties()
getProperties
in class Endpoint
public boolean isPublished()
isPublished
in class Endpoint
public void publish(Object arg0)
public void setServiceFactory(JaxWsServiceFactoryBean sf)
public void setMetadata(List<Source> metadata)
setMetadata
in class Endpoint
public void setProperties(Map<String,Object> properties)
setProperties
in class Endpoint
public String getBeanName()
Configurable
getBeanName
in interface Configurable
public JaxWsServerFactoryBean getServerFactory()
protected void setServerFactory(JaxWsServerFactoryBean bean)
protected void checkProperties()
protected void doPublish(String addr)
Server
instance based on this endpoint's configuration.addr
- the optional endpoint address.IllegalStateException
- if the endpoint cannot be published/republishedSecurityException
- if permission checking is enabled and policy forbids publishingWebServiceException
- if there is an error publishing the endpointcheckPublishPermission()
,
checkPublishable()
,
getServer(String)
public ServerImpl getServer()
public ServerImpl getServer(String addr)
protected void checkPublishPermission()
protected void checkPublishable()
IllegalStateException
- if publishable
is falsepublic void publish()
public String getAddress()
public void setAddress(String address)
public String getPublishedEndpointUrl()
public void setPublishedEndpointUrl(String publishedEndpointUrl)
public QName getEndpointName()
public void setEndpointName(QName endpointName)
public QName getServiceName()
public void setServiceName(QName serviceName)
public String getWsdlLocation()
public void setWsdlLocation(String wsdlLocation)
public void setBindingUri(String binding)
public String getBindingUri()
public void setDataBinding(DataBinding dataBinding)
public DataBinding getDataBinding()
public List<Interceptor<? extends Message>> getOutFaultInterceptors()
InterceptorProvider
getOutFaultInterceptors
in interface InterceptorProvider
List
outgoing fault interceptor chainpublic List<Interceptor<? extends Message>> getInFaultInterceptors()
InterceptorProvider
getInFaultInterceptors
in interface InterceptorProvider
List
incoming fault interceptor chainpublic List<Interceptor<? extends Message>> getInInterceptors()
InterceptorProvider
getInInterceptors
in interface InterceptorProvider
List
incoming interceptor chainpublic List<Interceptor<? extends Message>> getOutInterceptors()
InterceptorProvider
getOutInterceptors
in interface InterceptorProvider
List
outgoing interceptor chainpublic void setInInterceptors(List<Interceptor<? extends Message>> interceptors)
public void setInFaultInterceptors(List<Interceptor<? extends Message>> interceptors)
public void setOutInterceptors(List<Interceptor<? extends Message>> interceptors)
public void setOutFaultInterceptors(List<Interceptor<? extends Message>> interceptors)
public Invoker getInvoker()
public void setInvoker(Invoker invoker)
public void setImplementorClass(Class<?> implementorClass)
public void setTransportId(String transportId)
public String getTransportId()
public void setBindingConfig(BindingConfiguration config)
public BindingConfiguration getBindingConfig()
public EndpointReference getEndpointReference(Element... referenceParameters)
getEndpointReference
in class Endpoint
public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters)
getEndpointReference
in class Endpoint
public void setEndpointContext(EndpointContext ctxt)
setEndpointContext
in class Endpoint
public EndpointContext getEndpointContext()
public void publish(HttpContext context)
public void close() throws Exception
close
in interface AutoCloseable
Exception
Apache CXF