Class RequestResponseTestClientAdapter<M,N,O,P>
- java.lang.Object
-
- org.apache.axis2.transport.testkit.client.RequestResponseTestClientAdapter<M,N,O,P>
-
- All Implemented Interfaces:
Adapter
,RequestResponseTestClient<M,O>
,TestClient
public class RequestResponseTestClientAdapter<M,N,O,P> extends Object implements RequestResponseTestClient<M,O>, Adapter
-
-
Constructor Summary
Constructors Constructor Description RequestResponseTestClientAdapter(RequestResponseTestClient<N,P> target, MessageEncoder<M,N> encoder, MessageDecoder<P,O> decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType
getContentType(ClientOptions options, ContentType contentType)
RequestResponseTestClient<N,P>
getTarget()
IncomingMessage<O>
sendMessage(ClientOptions options, ContentType contentType, M message)
-
-
-
Constructor Detail
-
RequestResponseTestClientAdapter
public RequestResponseTestClientAdapter(RequestResponseTestClient<N,P> target, MessageEncoder<M,N> encoder, MessageDecoder<P,O> decoder)
-
-
Method Detail
-
getTarget
public RequestResponseTestClient<N,P> getTarget()
-
getContentType
public ContentType getContentType(ClientOptions options, ContentType contentType) throws Exception
- Specified by:
getContentType
in interfaceTestClient
- Throws:
Exception
-
sendMessage
public IncomingMessage<O> sendMessage(ClientOptions options, ContentType contentType, M message) throws Exception
- Specified by:
sendMessage
in interfaceRequestResponseTestClient<M,N>
- Throws:
Exception
-
-