public abstract class ServiceInterceptor extends Object
WSService
.
System-level code could hook an implementation of this to
WSService
to augument its behavior.
ServiceInterceptorFactory
Constructor and Description |
---|
ServiceInterceptor() |
Modifier and Type | Method and Description |
---|---|
static ServiceInterceptor |
aggregate(ServiceInterceptor... interceptors)
Aggregates multiple interceptors into one facade.
|
void |
postCreateDispatch(WSBindingProvider bp)
A callback to notify that a
Dispatch object is created. |
void |
postCreateProxy(WSBindingProvider bp,
Class<?> serviceEndpointInterface)
A callback to notify the event of creation of proxy object for SEI endpoint.
|
List<WebServiceFeature> |
preCreateBinding(WSPortInfo port,
Class<?> serviceEndpointInterface,
WSFeatureList defaultFeatures)
Called before
WSBinding is created, to allow interceptors
to add WebServiceFeature s to the created WSBinding . |
public List<WebServiceFeature> preCreateBinding(@NotNull WSPortInfo port, @Nullable Class<?> serviceEndpointInterface, @NotNull WSFeatureList defaultFeatures)
WSBinding
is created, to allow interceptors
to add WebServiceFeature
s to the created WSBinding
.port
- Information about the port for which dispatch/proxy will be created.serviceEndpointInterface
- Null if the created binding is for Dispatch
. 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 created WSBinding
.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 over BindingID
's
implicit features
.public void postCreateProxy(@NotNull WSBindingProvider bp, @NotNull Class<?> serviceEndpointInterface)
BindingProvider
.bp
- created proxy instanceserviceEndpointInterface
- SEI of the endpointpublic void postCreateDispatch(@NotNull WSBindingProvider bp)
Dispatch
object is created. The callback
could set some properties on the BindingProvider
.bp
- BindingProvider of dispatch objectpublic static ServiceInterceptor aggregate(ServiceInterceptor... interceptors)
Copyright © 2015 Oracle Corporation. All rights reserved.