|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.ws.jaxws.JaxWsHelper
public class JaxWsHelper
Implementation of the IWsHelper
contract, based on the JAX-WS 2.1 API
and the JAXB 2.1 API.
This implementation is stateless, thus it can be profitably used by the JTR runtime
as a shared-helper class for all those concrete runners requiring web-services support.
Please, also note that this implementation imposes that only JAXB-based objects are used as
input and output parameters.
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
JaxWsHelper()
Creates a new instance of JaxWsHelper |
Method Summary | |
---|---|
void |
generateRuntimeConfig(WebServiceConfig wsCfg)
|
java.lang.Object |
invoke(IRunnerWs runner,
Binding binding,
java.lang.Object input)
This method performs a request/response synchronous webservice invocation. |
IWsResponse |
invokeAsync(IRunnerWs runner,
Binding binding,
java.lang.Object input)
This method performs an asynchronous invocation of the webservice described by the binding parameter. |
java.util.concurrent.Future<?> |
invokeAsync(IRunnerWs runner,
Binding binding,
java.lang.Object input,
IWsResponseListener rl)
This method performs an asynchronous invocation of the webservice described by the binding parameter. |
void |
invokeOneWay(IRunnerWs runner,
Binding binding,
java.lang.Object input)
This method performs a request only webservice invocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger logger
Constructor Detail |
---|
public JaxWsHelper()
Method Detail |
---|
public void generateRuntimeConfig(WebServiceConfig wsCfg) throws WsProviderException
WsProviderException
public java.lang.Object invoke(IRunnerWs runner, Binding binding, java.lang.Object input) throws WsProviderException
IWsHelper
input
parameter is the invocation argument, while the
returned Object
instance is the result of the invocation.
invoke
in interface IWsHelper
runner
- The runner on whose behalf the service is invokedbinding
- The JTR description of the webservice that must be invokedinput
- The input message
WsProviderException
public void invokeOneWay(IRunnerWs runner, Binding binding, java.lang.Object input) throws WsProviderException
IWsHelper
input
parameter is the invocation argument.
invokeOneWay
in interface IWsHelper
runner
- The runner on whose behalf the service is invokedbinding
- The JTR description of the webservice that must be invokedinput
- The input message
WsProviderException
public java.util.concurrent.Future<?> invokeAsync(IRunnerWs runner, Binding binding, java.lang.Object input, IWsResponseListener rl) throws WsProviderException
IWsHelper
binding
parameter. The returned Future
instance can be
used to check whether the response message has been received or not. Once the
response message has been received the provided IWsResponseListener
will be notified and will be able to inspect the response.
invokeAsync
in interface IWsHelper
runner
- The runner on whose behalf the service is invokedbinding
- The JTR description of the webservice that must be invokedinput
- The input messagerl
- The listener to be notified upon response reception
Future
required to check for response availability
WsProviderException
public IWsResponse invokeAsync(IRunnerWs runner, Binding binding, java.lang.Object input) throws WsProviderException
IWsHelper
binding
parameter. The returned IWsResponse
instance is
required to check for response mesage availability and to inspect the response itself.
invokeAsync
in interface IWsHelper
runner
- The runner on whose behalf the service is invokedbinding
- The JTR description of the webservice that must be invokedinput
- The input message
IWsResponse
instance required to check for response mesage
availability and to inspect the response itself
WsProviderException
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |