|
||||||||||
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.
Nested Class Summary | |
---|---|
protected static class |
BindingImpl.MessageKey
Experimental: Identify messages based on the name of the message and the operation that uses this message. |
Field Summary | |
---|---|
protected static javax.xml.ws.WebServiceFeature[] |
EMPTY_FEATURES
|
protected java.util.Map<BindingImpl.MessageKey,WebServiceFeatureList> |
faultMessageFeatures
|
protected WebServiceFeatureList |
features
|
protected java.util.Map<javax.xml.namespace.QName,WebServiceFeatureList> |
inputMessageFeatures
|
protected com.oracle.webservices.api.message.MessageContextFactory |
messageContextFactory
|
protected java.util.Map<javax.xml.namespace.QName,WebServiceFeatureList> |
operationFeatures
|
protected java.util.Map<javax.xml.namespace.QName,WebServiceFeatureList> |
outputMessageFeatures
|
protected javax.xml.ws.Service.Mode |
serviceMode
|
Constructor Summary | |
---|---|
protected |
BindingImpl(BindingID bindingId,
javax.xml.ws.WebServiceFeature... features)
|
Method Summary | ||
---|---|---|
boolean |
addKnownHeader(javax.xml.namespace.QName headerQName)
Adds header QName to set known to be supported by this binding |
|
static BindingImpl |
create(BindingID bindingId)
|
|
static BindingImpl |
create(BindingID bindingId,
javax.xml.ws.WebServiceFeature[] features)
|
|
Codec |
createCodec()
|
|
AddressingVersion |
getAddressingVersion()
Gets the WS-Addressing version of this binding. |
|
BindingID |
getBindingId()
Gets the binding ID, which uniquely identifies the binding. |
|
java.lang.String |
getBindingID()
|
|
static WSBinding |
getDefaultBinding()
|
|
WebServiceFeatureList |
getFaultMessageFeatures(javax.xml.namespace.QName operationName,
javax.xml.namespace.QName messageName)
Experimental: Returns a list of features associated with WSBinding that apply to
one of the fault messages of an operation. |
|
|
getFeature(java.lang.Class<F> featureType)
Gets a WebServiceFeature of the specific type. |
|
WebServiceFeatureList |
getFeatures()
Returns a list of features associated with WSBinding . |
|
java.util.List<javax.xml.ws.handler.Handler> |
getHandlerChain()
|
|
HandlerConfiguration |
getHandlerConfig()
|
|
WebServiceFeatureList |
getInputMessageFeatures(javax.xml.namespace.QName operationName)
Experimental: Returns a list of features associated with WSBinding that apply to
the input message of an operation. |
|
java.util.Set<javax.xml.namespace.QName> |
getKnownHeaders()
Returns set of header QNames known to be supported by this binding. |
|
com.oracle.webservices.api.message.MessageContextFactory |
getMessageContextFactory()
|
|
|
getOperationFeature(java.lang.Class<F> featureType,
javax.xml.namespace.QName operationName)
Experimental: Gets a WebServiceFeature of the specific type that applies to an operation. |
|
WebServiceFeatureList |
getOperationFeatures(javax.xml.namespace.QName operationName)
Experimental: Returns a list of features associated with WSBinding that apply to
a particular operation. |
|
WebServiceFeatureList |
getOutputMessageFeatures(javax.xml.namespace.QName operationName)
Experimental: Returns a list of features associated with WSBinding that apply to
the output message of an operation. |
|
SOAPVersion |
getSOAPVersion()
Gets the SOAP version of this binding. |
|
static void |
initializeJavaActivationHandlers()
|
|
boolean |
isFeatureEnabled(java.lang.Class<? extends javax.xml.ws.WebServiceFeature> feature)
Checks if a particular WebServiceFeature is enabled. |
|
boolean |
isOperationFeatureEnabled(java.lang.Class<? extends javax.xml.ws.WebServiceFeature> featureType,
javax.xml.namespace.QName operationName)
Experimental: Checks if a particular WebServiceFeature on an operation is enabled. |
|
void |
setFaultMessageFeatures(javax.xml.namespace.QName operationName,
javax.xml.namespace.QName messageName,
javax.xml.ws.WebServiceFeature... newFeatures)
|
|
protected void |
setHandlerConfig(HandlerConfiguration handlerConfig)
|
|
void |
setInputMessageFeatures(javax.xml.namespace.QName operationName,
javax.xml.ws.WebServiceFeature... newFeatures)
|
|
void |
setMode(javax.xml.ws.Service.Mode mode)
|
|
void |
setOperationFeatures(javax.xml.namespace.QName operationName,
javax.xml.ws.WebServiceFeature... newFeatures)
|
|
void |
setOutputMessageFeatures(javax.xml.namespace.QName operationName,
javax.xml.ws.WebServiceFeature... newFeatures)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.ws.Binding |
---|
setHandlerChain |
Field Detail |
---|
protected static final javax.xml.ws.WebServiceFeature[] EMPTY_FEATURES
protected final WebServiceFeatureList features
protected final java.util.Map<javax.xml.namespace.QName,WebServiceFeatureList> operationFeatures
protected final java.util.Map<javax.xml.namespace.QName,WebServiceFeatureList> inputMessageFeatures
protected final java.util.Map<javax.xml.namespace.QName,WebServiceFeatureList> outputMessageFeatures
protected final java.util.Map<BindingImpl.MessageKey,WebServiceFeatureList> faultMessageFeatures
protected javax.xml.ws.Service.Mode serviceMode
protected com.oracle.webservices.api.message.MessageContextFactory messageContextFactory
Constructor Detail |
---|
protected BindingImpl(BindingID bindingId, javax.xml.ws.WebServiceFeature... features)
Method Detail |
---|
@NotNull public java.util.List<javax.xml.ws.handler.Handler> getHandlerChain()
getHandlerChain
in interface WSBinding
getHandlerChain
in interface javax.xml.ws.Binding
public HandlerConfiguration getHandlerConfig()
protected void setHandlerConfig(HandlerConfiguration handlerConfig)
public void setMode(@NotNull javax.xml.ws.Service.Mode mode)
public java.util.Set<javax.xml.namespace.QName> getKnownHeaders()
WSBinding
getKnownHeaders
in interface WSBinding
public boolean addKnownHeader(javax.xml.namespace.QName headerQName)
WSBinding
addKnownHeader
in interface WSBinding
headerQName
- Known header QName
@NotNull public BindingID getBindingId()
WSBinding
The 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 WSBinding
public final SOAPVersion getSOAPVersion()
WSBinding
This is just a short-cut for getBindingID().getSOAPVersion()
getSOAPVersion
in interface WSBinding
SOAPVersion
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 Tube
s.public AddressingVersion getAddressingVersion()
WSBinding
getAddressingVersion
in interface WSBinding
AddressingVersion
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 void initializeJavaActivationHandlers()
public static BindingImpl create(@NotNull BindingID bindingId)
public static BindingImpl create(@NotNull BindingID bindingId, javax.xml.ws.WebServiceFeature[] features)
public static WSBinding getDefaultBinding()
public java.lang.String getBindingID()
getBindingID
in interface javax.xml.ws.Binding
@Nullable public <F extends javax.xml.ws.WebServiceFeature> F getFeature(@NotNull java.lang.Class<F> featureType)
WSBinding
WebServiceFeature
of the specific type.
getFeature
in interface WSBinding
featureType
- The type of the feature to retrieve.
@Nullable public <F extends javax.xml.ws.WebServiceFeature> F getOperationFeature(@NotNull java.lang.Class<F> featureType, @NotNull javax.xml.namespace.QName operationName)
WSBinding
WebServiceFeature
of the specific type that applies to an operation.
getOperationFeature
in interface WSBinding
featureType
- The type of the feature to retrieve.operationName
- The WSDL name of the operation.
public boolean isFeatureEnabled(@NotNull java.lang.Class<? extends javax.xml.ws.WebServiceFeature> feature)
WSBinding
WebServiceFeature
is enabled.
isFeatureEnabled
in interface WSBinding
public boolean isOperationFeatureEnabled(@NotNull java.lang.Class<? extends javax.xml.ws.WebServiceFeature> featureType, @NotNull javax.xml.namespace.QName operationName)
WSBinding
WebServiceFeature
on an operation is enabled.
isOperationFeatureEnabled
in interface WSBinding
operationName
- The WSDL name of the operation.
@NotNull public WebServiceFeatureList getFeatures()
WSBinding
WSBinding
.
getFeatures
in interface WSBinding
@NotNull public WebServiceFeatureList getOperationFeatures(@NotNull javax.xml.namespace.QName operationName)
WSBinding
WSBinding
that apply to
a particular operation.
getOperationFeatures
in interface WSBinding
operationName
- The WSDL name of the operation.@NotNull public WebServiceFeatureList getInputMessageFeatures(@NotNull javax.xml.namespace.QName operationName)
WSBinding
WSBinding
that apply to
the input message of an operation.
getInputMessageFeatures
in interface WSBinding
operationName
- The WSDL name of the operation.@NotNull public WebServiceFeatureList getOutputMessageFeatures(@NotNull javax.xml.namespace.QName operationName)
WSBinding
WSBinding
that apply to
the output message of an operation.
getOutputMessageFeatures
in interface WSBinding
operationName
- The WSDL name of the operation.@NotNull public WebServiceFeatureList getFaultMessageFeatures(@NotNull javax.xml.namespace.QName operationName, @NotNull javax.xml.namespace.QName messageName)
WSBinding
WSBinding
that apply to
one of the fault messages of an operation.
getFaultMessageFeatures
in interface WSBinding
operationName
- The WSDL name of the operation.messageName
- The WSDL name of the fault message.public void setOperationFeatures(@NotNull javax.xml.namespace.QName operationName, javax.xml.ws.WebServiceFeature... newFeatures)
public void setInputMessageFeatures(@NotNull javax.xml.namespace.QName operationName, javax.xml.ws.WebServiceFeature... newFeatures)
public void setOutputMessageFeatures(@NotNull javax.xml.namespace.QName operationName, javax.xml.ws.WebServiceFeature... newFeatures)
public void setFaultMessageFeatures(@NotNull javax.xml.namespace.QName operationName, @NotNull javax.xml.namespace.QName messageName, javax.xml.ws.WebServiceFeature... newFeatures)
@NotNull public com.oracle.webservices.api.message.MessageContextFactory getMessageContextFactory()
getMessageContextFactory
in interface WSBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |