|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.api.client.ServiceInterceptor
public abstract class ServiceInterceptor
Interception point for inner working of WSService
.
System-level code could hook an implementation of this to
WSService
to augument its behavior.
ServiceInterceptorFactory
Constructor Summary | |
---|---|
ServiceInterceptor()
|
Method Summary | |
---|---|
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,
java.lang.Class<?> serviceEndpointInterface)
A callback to notify the event of creation of proxy object for SEI endpoint. |
java.util.List<WebServiceFeature> |
preCreateBinding(WSPortInfo port,
java.lang.Class<?> serviceEndpointInterface,
WSFeatureList defaultFeatures)
Called before WSBinding is created, to allow interceptors
to add WebServiceFeature s to the created WSBinding . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceInterceptor()
Method Detail |
---|
public java.util.List<WebServiceFeature> preCreateBinding(@NotNull WSPortInfo port, @Nullable java.lang.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 java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |