java.lang.Object
com.sun.xml.ws.api.client.ServiceInterceptor
Interception point for inner working of
WSService
.
System-level code could hook an implementation of this to
WSService
to augument its behavior.
- Since:
- 2.1 EA3
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceInterceptor
aggregate
(ServiceInterceptor... interceptors) Aggregates multiple interceptors into one facade.void
A callback to notify that aDispatch
object is created.void
postCreateProxy
(WSBindingProvider bp, Class<?> serviceEndpointInterface) A callback to notify the event of creation of proxy object for SEI endpoint.List<jakarta.xml.ws.WebServiceFeature>
preCreateBinding
(WSPortInfo port, Class<?> serviceEndpointInterface, WSFeatureList defaultFeatures)
-
Constructor Details
-
ServiceInterceptor
protected ServiceInterceptor()Default constructor.
-
-
Method Details
-
preCreateBinding
public List<jakarta.xml.ws.WebServiceFeature> preCreateBinding(@NotNull WSPortInfo port, @Nullable Class<?> serviceEndpointInterface, @NotNull WSFeatureList defaultFeatures) Called beforeWSBinding
is created, to allow interceptors to addWebServiceFeature
s to the createdWSBinding
.- Parameters:
port
- Information about the port for which dispatch/proxy will be created.serviceEndpointInterface
- Null if the created binding is forDispatch
. Otheriwse it represents the port interface of the proxy to be created.defaultFeatures
- The list of features that are currently scheduled to be set for the newly createdWSBinding
.- Returns:
- A set of features to be added to the newly created
WSBinding
. Can be empty but never null.defaultFeatures
will take precedence over what this method would return (because it includes user-specified ones which will take the at-most priority), but features you return from this method will take precedence overBindingID
'simplicit features
.
-
postCreateProxy
public void postCreateProxy(@NotNull WSBindingProvider bp, @NotNull Class<?> serviceEndpointInterface) A callback to notify the event of creation of proxy object for SEI endpoint. The callback could set some properties on theBindingProvider
.- Parameters:
bp
- created proxy instanceserviceEndpointInterface
- SEI of the endpoint
-
postCreateDispatch
A callback to notify that aDispatch
object is created. The callback could set some properties on theBindingProvider
.- Parameters:
bp
- BindingProvider of dispatch object
-
aggregate
Aggregates multiple interceptors into one facade.
-