public interface WSBindingProvider extends BindingProvider, Closeable, ComponentRegistry
BindingProvider
with JAX-WS RI's extension methods.ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY
Modifier and Type | Method and Description |
---|---|
List<com.sun.xml.ws.api.message.Header> |
getInboundHeaders() |
org.glassfish.gmbal.ManagedObjectManager |
getManagedObjectManager()
Get the ManagedObjectManager for this provider.
|
WSPortInfo |
getPortInfo() |
WSEndpointReference |
getWSEndpointReference()
Similar to {link BindingProvider#getEndpointReference(}, but returns WSEndpointReference that has more
convenience methods
|
void |
setAddress(String address)
Sets the endpoint address for all the invocations that happen
from
BindingProvider . |
void |
setOutboundHeaders(com.sun.xml.ws.api.message.Header... headers)
Sets the out-bound headers to be added to messages sent from
this
BindingProvider . |
void |
setOutboundHeaders(List<com.sun.xml.ws.api.message.Header> headers)
Sets the out-bound headers to be added to messages sent from
this
BindingProvider . |
void |
setOutboundHeaders(Object... headers)
Sets the out-bound headers to be added to messages sent from
this
BindingProvider . |
getBinding, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext
getComponents
void setOutboundHeaders(List<com.sun.xml.ws.api.message.Header> headers)
BindingProvider
.
Calling this method would discard any out-bound headers that were previously set.
A new Header
object can be created by using
one of the methods on Headers
.
headers
- The headers to be added to the future request messages.
To clear the outbound headers, pass in either null
or empty list.IllegalArgumentException
- if the list contains null item.void setOutboundHeaders(com.sun.xml.ws.api.message.Header... headers)
BindingProvider
.
Works like setOutboundHeaders(List)
except
that it accepts a var arg array.
headers
- Can be null or empty.void setOutboundHeaders(Object... headers)
BindingProvider
.
Each object must be a JAXB-bound object that is understood
by the JAXBContext
object known by this WSBindingProvider
(that is, if this is a Dispatch
with JAXB, then
JAXBContext
given to Service.createDispatch(QName,JAXBContext,Mode)
and if this is a typed proxy, then JAXBContext
implicitly created by the JAX-WS RI.)
headers
- Can be null or empty.UnsupportedOperationException
- If this WSBindingProvider
is a Dispatch
that does not use JAXB.List<com.sun.xml.ws.api.message.Header> getInboundHeaders()
void setAddress(String address)
BindingProvider
. Instead of doing the following
((BindingProvider)proxy).getRequestContext().put( BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "...")
you could do this:
((WSBindingProvider)proxy).setAddress("...");
address
- Address of the serviceWSEndpointReference getWSEndpointReference()
WSPortInfo getPortInfo()
@NotNull org.glassfish.gmbal.ManagedObjectManager getManagedObjectManager()
Copyright © 2015 Oracle Corporation. All rights reserved.