| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dispatch extends BindingProvider
The Dispatch
interface provides support
for the dynamic invocation of a service endpoint operations. The
javax.xml.ws.Service
interface acts as a factory for the creation of Dispatch
instances.
Field Summary |
---|
Fields inherited from class javax.xml.ws.BindingProvider |
---|
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY |
Method Summary | |
---|---|
Object |
Invoke a service operation synchronously. |
Response |
invokeAsync(Object msg) Invoke a service operation asynchronously. |
Future |
invokeAsync(Object msg, AsyncHandler handler) Invoke a service operation asynchronously. |
void |
invokeOneWay(Object msg) Invokes a service operation using the one-way interaction mode. |
Methods inherited from class javax.xml.ws.BindingProvider |
---|
getBinding, getEndpointReference, getEndpointReference, getRequestContext, getResponseContext |
Method Detail |
---|
public Object invoke(Object msg)
msg
object
when marshalled is formed according to the requirements of the protocol
binding in use.
msg
- An object that will form the message or payload of
the message used to invoke the operation.public Response invokeAsync(Object msg)
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.
msg
- An object that will form the message or payload of
the message used to invoke the operation.public Future invokeAsync(Object msg, AsyncHandler handler)
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.
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(Object msg)
The client is responsible for ensuring that the msg
object
when marshalled is formed according to the requirements of the protocol
binding in use.
msg
- An object that will form the message or payload of
the message used to invoke the operation.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |