org.apache.axis2.transport.testkit.client
Class AsyncTestClientAdapter<M,N>

java.lang.Object
  extended by org.apache.axis2.transport.testkit.client.AsyncTestClientAdapter<M,N>
All Implemented Interfaces:
Adapter, AsyncTestClient<M>, TestClient

public class AsyncTestClientAdapter<M,N>
extends java.lang.Object
implements AsyncTestClient<M>, Adapter


Constructor Summary
AsyncTestClientAdapter(AsyncTestClient<N> target, MessageEncoder<M,N> encoder)
           
 
Method Summary
 javax.mail.internet.ContentType getContentType(ClientOptions options, javax.mail.internet.ContentType contentType)
           
 AsyncTestClient<N> getTarget()
           
 void sendMessage(ClientOptions options, javax.mail.internet.ContentType contentType, M message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncTestClientAdapter

public AsyncTestClientAdapter(AsyncTestClient<N> target,
                              MessageEncoder<M,N> encoder)
Method Detail

getTarget

public AsyncTestClient<N> getTarget()
Specified by:
getTarget in interface Adapter

getContentType

public javax.mail.internet.ContentType getContentType(ClientOptions options,
                                                      javax.mail.internet.ContentType contentType)
                                               throws java.lang.Exception
Specified by:
getContentType in interface TestClient
Throws:
java.lang.Exception

sendMessage

public void sendMessage(ClientOptions options,
                        javax.mail.internet.ContentType contentType,
                        M message)
                 throws java.lang.Exception
Specified by:
sendMessage in interface AsyncTestClient<M>
Throws:
java.lang.Exception


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.