Package com.sun.xml.ws.api.client
Class ServiceInterceptor
- java.lang.Object
-
- com.sun.xml.ws.api.client.ServiceInterceptor
-
public abstract class ServiceInterceptor extends Object
Interception point for inner working ofWSService.System-level code could hook an implementation of this to
WSServiceto augument its behavior.- Since:
- 2.1 EA3
- Author:
- Kohsuke Kawaguchi
- See Also:
ServiceInterceptorFactory
-
-
Constructor Summary
Constructors Constructor Description ServiceInterceptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceInterceptoraggregate(ServiceInterceptor... interceptors)Aggregates multiple interceptors into one facade.voidpostCreateDispatch(WSBindingProvider bp)A callback to notify that aDispatchobject is created.voidpostCreateProxy(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)
-
-
-
Method Detail
-
preCreateBinding
public List<jakarta.xml.ws.WebServiceFeature> preCreateBinding(@NotNull WSPortInfo port, @Nullable Class<?> serviceEndpointInterface, @NotNull WSFeatureList defaultFeatures)
Called beforeWSBindingis created, to allow interceptors to addWebServiceFeatures 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.defaultFeatureswill 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
public void postCreateDispatch(@NotNull WSBindingProvider bp)
A callback to notify that aDispatchobject is created. The callback could set some properties on theBindingProvider.- Parameters:
bp- BindingProvider of dispatch object
-
aggregate
public static ServiceInterceptor aggregate(ServiceInterceptor... interceptors)
Aggregates multiple interceptors into one facade.
-
-