Package com.sun.xml.ws.api.client
Class ServiceInterceptor
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceInterceptoraggregate(ServiceInterceptor... interceptors) Aggregates multiple interceptors into one facade.voidA 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<javax.xml.ws.WebServiceFeature>preCreateBinding(WSPortInfo port, Class<?> serviceEndpointInterface, WSFeatureList defaultFeatures)
-
Constructor Details
-
ServiceInterceptor
public ServiceInterceptor()
-
-
Method Details
-
preCreateBinding
public List<javax.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
A callback to notify that aDispatchobject is created. The callback could set some properties on theBindingProvider.- Parameters:
bp- BindingProvider of dispatch object
-
aggregate
Aggregates multiple interceptors into one facade.
-