Package jakarta.xml.ws
Interface BindingProvider
- All Known Subinterfaces:
Dispatch<T>
public interface BindingProvider
The
BindingProvider interface provides access to the
protocol binding and associated context objects for request and
response message processing.- Since:
- 1.6, JAX-WS 2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStandard property: Target service endpoint address.static final StringStandard property: Password for authentication.static final StringStandard property: This boolean property is used by a service client to indicate whether or not it wants to participate in a session with a service endpoint.static final StringStandard property for SOAPAction.static final StringStandard property for SOAPAction.static final StringStandard property: User name for authentication. -
Method Summary
Modifier and TypeMethodDescriptionGet the Binding for this binding provider.Returns theEndpointReferenceassociated with thisBindingProviderinstance.<T extends EndpointReference>
TgetEndpointReference(Class<T> clazz) Returns theEndpointReferenceassociated with thisBindingProviderinstance.Get the context that is used to initialize the message context for request messages.Get the context that resulted from processing a response message.
-
Field Details
-
USERNAME_PROPERTY
Standard property: User name for authentication.Type:
java.lang.String- See Also:
-
PASSWORD_PROPERTY
Standard property: Password for authentication.Type:
java.lang.String- See Also:
-
ENDPOINT_ADDRESS_PROPERTY
Standard property: Target service endpoint address. The URI scheme for the endpoint address specification MUST correspond to the protocol/transport binding for the binding in use.Type:
java.lang.String- See Also:
-
SESSION_MAINTAIN_PROPERTY
Standard property: This boolean property is used by a service client to indicate whether or not it wants to participate in a session with a service endpoint. If this property is set totrue, the service client indicates that it wants the session to be maintained. If set tofalse, the session is not maintained. The default value for this property isfalse.Type:
java.lang.Boolean- See Also:
-
SOAPACTION_USE_PROPERTY
Standard property for SOAPAction. This boolean property indicates whether or not the value of thejakarta.xml.ws.soap.http.soapaction.uriproperty is used for the value of the SOAPAction. The default value of this property isfalseindicating that thejakarta.xml.ws.soap.http.soapaction.uriproperty is not used for the value of the SOAPAction, however, if WS-Addressing is enabled, the default value istrue.Type:
java.lang.Boolean- See Also:
-
SOAPACTION_URI_PROPERTY
Standard property for SOAPAction. Indicates the SOAPAction URI if thejakarta.xml.ws.soap.http.soapaction.useproperty is set totrue. If WS-Addressing is enabled, this value will also be used for the value of the WS-Addressing Action header. If this property is not set, the default SOAPAction and WS-Addressing Action will be sent.Type:
java.lang.String- See Also:
-
-
Method Details
-
getRequestContext
Get the context that is used to initialize the message context for request messages. Modifications to the request context do not affect the message context of either synchronous or asynchronous operations that have already been started.- Returns:
- The context that is used in processing request messages.
-
getResponseContext
Get the context that resulted from processing a response message. The returned context is for the most recently completed synchronous operation. Subsequent synchronous operation invocations overwrite the response context. Asynchronous operations return their response context via the Response interface.- Returns:
- The context that resulted from processing the latest response messages.
-
getBinding
Binding getBinding()Get the Binding for this binding provider.- Returns:
- The Binding for this binding provider.
-
getEndpointReference
EndpointReference getEndpointReference()Returns theEndpointReferenceassociated with thisBindingProviderinstance.If the Binding for this
bindingProvideris either SOAP1.1/HTTP or SOAP1.2/HTTP, then aW3CEndpointReferenceMUST be returned.- Returns:
- EndpointReference of the target endpoint associated with this
BindingProviderinstance. - Throws:
UnsupportedOperationException- If thisBindingProvideruses the XML/HTTP binding.- Since:
- 1.6, JAX-WS 2.1
- See Also:
-
getEndpointReference
Returns theEndpointReferenceassociated with thisBindingProviderinstance. The instance returned will be of typeclazz.- Type Parameters:
T- the type ofEndpointReference- Parameters:
clazz- Specifies the type ofEndpointReferencethat MUST be returned.- Returns:
- EndpointReference of the target endpoint associated with this
BindingProviderinstance. MUST be of typeclazz. - Throws:
WebServiceException- If the Classclazzis not supported by this implementation.UnsupportedOperationException- If thisBindingProvideruses the XML/HTTP binding.- Since:
- 1.6, JAX-WS 2.1
-