public class PicketLinkDispatch extends Object implements Dispatch<Source>
A concrete implementation of Dispatch
that can be used as an alternative to the underlying JAXWS implementation.
This is used by setting the module option "overrideDispatch" to true in the JBWSTokenIssuingLoginModule
Modifier and Type | Class and Description |
---|---|
static class |
PicketLinkDispatch.PLMessageContext |
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY
Constructor and Description |
---|
PicketLinkDispatch(Dispatch parent,
String endpoint) |
Modifier and Type | Method and Description |
---|---|
Binding |
getBinding()
Get the Binding for this binding provider.
|
EndpointReference |
getEndpointReference()
Returns the
EndpointReference associated with
this BindingProvider instance. |
<T extends EndpointReference> |
getEndpointReference(Class<T> clazz)
Returns the
EndpointReference associated with
this BindingProvider instance. |
Map<String,Object> |
getRequestContext()
Get the context that is used to initialize the message context
for request messages.
|
Map<String,Object> |
getResponseContext()
Get the context that resulted from processing a response message.
|
Source |
invoke(Source requestMessage)
Invoke a service operation synchronously.
|
Response<Source> |
invokeAsync(Source msg)
Invoke a service operation asynchronously.
|
Future<?> |
invokeAsync(Source msg,
AsyncHandler<Source> handler)
Invoke a service operation asynchronously.
|
void |
invokeOneWay(Source msg)
Invokes a service operation using the one-way
interaction mode.
|
void |
setSSLSocketFactory(SSLSocketFactory ssl) |
void |
setUseWSSE(boolean val) |
public void setUseWSSE(boolean val)
public void setSSLSocketFactory(SSLSocketFactory ssl)
public Map<String,Object> getRequestContext()
BindingProvider
getRequestContext
in interface BindingProvider
public Map<String,Object> getResponseContext()
BindingProvider
getResponseContext
in interface BindingProvider
public Binding getBinding()
BindingProvider
getBinding
in interface BindingProvider
public EndpointReference getEndpointReference()
BindingProvider
EndpointReference
associated with
this BindingProvider
instance.
If the Binding for this bindingProvider
is
either SOAP1.1/HTTP or SOAP1.2/HTTP, then a
W3CEndpointReference
MUST be returned.
getEndpointReference
in interface BindingProvider
BindingProvider
instance.W3CEndpointReference
public <T extends EndpointReference> T getEndpointReference(Class<T> clazz)
BindingProvider
EndpointReference
associated with
this BindingProvider
instance. The instance
returned will be of type clazz
.getEndpointReference
in interface BindingProvider
clazz
- Specifies the type of EndpointReference
that MUST be returned.BindingProvider
instance. MUST be of type
clazz
.public Source invoke(Source requestMessage)
Dispatch
msg
object
when marshalled is formed according to the requirements of the protocol
binding in use.public Response<Source> invokeAsync(Source msg)
Dispatch
Response
.
The client is responsible for ensuring that the msg
object
when marshalled is formed according to the requirements of the protocol
binding in use.
invokeAsync
in interface Dispatch<Source>
msg
- An object that will form the message or payload of
the message used to invoke the operation.public Future<?> invokeAsync(Source msg, AsyncHandler<Source> handler)
Dispatch
handler
.
The client is responsible for ensuring that the msg
object
when marshalled is formed according to the requirements of the protocol
binding in use.
invokeAsync
in interface Dispatch<Source>
msg
- An object that will form the message or payload of
the message used to invoke the operation.handler
- The handler object that will receive the
response to the operation invocation.Future
object that may be used to check the status
of the operation invocation. This object MUST NOT be used to try to
obtain the results of the operation - the object returned from
Future<?>.get()
is implementation dependent
and any use of it will result in non-portable behaviour.public void invokeOneWay(Source msg)
Dispatch
The client is responsible for ensuring that the msg
object
when marshalled is formed according to the requirements of the protocol
binding in use.
invokeOneWay
in interface Dispatch<Source>
msg
- An object that will form the message or payload of
the message used to invoke the operation.Copyright © 2017 JBoss by Red Hat. All rights reserved.