|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.binding.BindingImpl
public abstract class BindingImpl
Instances are created by the service, which then sets the handler chain on the binding impl.
This class is made abstract as we don't see a situation when a BindingImpl has much meaning without binding id. IOW, for a specific binding there will be a class extending BindingImpl, for example SOAPBindingImpl.
The spi Binding interface extends Binding.
| Field Summary | |
|---|---|
protected WebServiceFeatureList |
features
|
| Constructor Summary | |
|---|---|
protected |
BindingImpl(BindingID bindingId)
|
| Method Summary | ||
|---|---|---|
void |
addFeature(javax.xml.ws.WebServiceFeature newFeature)
|
|
static BindingImpl |
create(BindingID bindingId)
|
|
static BindingImpl |
create(BindingID bindingId,
javax.xml.ws.WebServiceFeature[] features)
|
|
Codec |
createCodec()
|
|
protected abstract HandlerConfiguration |
createHandlerConfig(List<javax.xml.ws.handler.Handler> handlerChain)
|
|
AddressingVersion |
getAddressingVersion()
Gets the WS-Addressing version of this binding. |
|
BindingID |
getBindingId()
Gets the binding ID, which uniquely identifies the binding. |
|
String |
getBindingID()
|
|
static WSBinding |
getDefaultBinding()
|
|
|
getFeature(Class<F> featureType)
Gets a WebServiceFeature of the specific type. |
|
WebServiceFeatureList |
getFeatures()
Returns a list of features associated with WSBinding. |
|
List<javax.xml.ws.handler.Handler> |
getHandlerChain()
|
|
HandlerConfiguration |
getHandlerConfig()
|
|
SOAPVersion |
getSOAPVersion()
Gets the SOAP version of this binding. |
|
boolean |
isFeatureEnabled(Class<? extends javax.xml.ws.WebServiceFeature> feature)
Checks if a particular WebServiceFeature is enabled. |
|
void |
setFeatures(javax.xml.ws.WebServiceFeature... newFeatures)
|
|
void |
setHandlerChain(List<javax.xml.ws.handler.Handler> chain)
Sets the handlers on the binding and then sorts the handlers in to logical and protocol handlers. |
|
protected void |
setHandlerConfig(HandlerConfiguration handlerConfig)
This is called when ever Binding.setHandlerChain() or SOAPBinding.setRoles() is called. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final WebServiceFeatureList features
| Constructor Detail |
|---|
protected BindingImpl(BindingID bindingId)
| Method Detail |
|---|
@NotNull public List<javax.xml.ws.handler.Handler> getHandlerChain()
getHandlerChain in interface WSBindinggetHandlerChain in interface javax.xml.ws.Bindingpublic HandlerConfiguration getHandlerConfig()
public void setHandlerChain(List<javax.xml.ws.handler.Handler> chain)
setHandlerChain in interface javax.xml.ws.Bindingprotected void setHandlerConfig(HandlerConfiguration handlerConfig)
protected abstract HandlerConfiguration createHandlerConfig(List<javax.xml.ws.handler.Handler> handlerChain)
@NotNull public BindingID getBindingId()
WSBindingThe relevant specs define the binding IDs and what they mean. The ID is used in many places to identify the kind of binding (such as SOAP1.1, SOAP1.2, REST, ...)
getBindingId in interface WSBindingpublic final SOAPVersion getSOAPVersion()
WSBinding
This is just a shor-cut for getBindingID().getSOAPVersion()
getSOAPVersion in interface WSBindingSOAPVersion constant.
If the binding is not based on SOAP, this method
returns null. See Message for how a non-SOAP
binding shall be handled by Tubes.public AddressingVersion getAddressingVersion()
WSBinding
getAddressingVersion in interface WSBindingAddressingVersion constant.
If binding is not using SOAP or WS-Addressing is not enabled,
this method returns null.
This might be little slow as it has to go over all the features on binding.
Its advisable to cache the addressingVersion wherever possible and reuse it.@NotNull public final Codec createCodec()
public static BindingImpl create(@NotNull
BindingID bindingId)
public static BindingImpl create(@NotNull
BindingID bindingId,
javax.xml.ws.WebServiceFeature[] features)
public static WSBinding getDefaultBinding()
public String getBindingID()
getBindingID in interface javax.xml.ws.Binding
@Nullable
public <F extends javax.xml.ws.WebServiceFeature> F getFeature(@NotNull
Class<F> featureType)
WSBindingWebServiceFeature of the specific type.
getFeature in interface WSBindingfeatureType - The type of the feature to retrieve.
public boolean isFeatureEnabled(@NotNull
Class<? extends javax.xml.ws.WebServiceFeature> feature)
WSBindingWebServiceFeature is enabled.
isFeatureEnabled in interface WSBinding@NotNull public WebServiceFeatureList getFeatures()
WSBindingWSBinding.
getFeatures in interface WSBindingpublic void setFeatures(javax.xml.ws.WebServiceFeature... newFeatures)
public void addFeature(@NotNull
javax.xml.ws.WebServiceFeature newFeature)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||