Class ClientConversation<Request,Response>
- java.lang.Object
-
- org.opennms.netmgt.provision.support.ClientConversation<Request,Response>
-
public class ClientConversation<Request,Response> extends Object
ClientConversation class.
- Version:
- $Id: $
- Author:
- Donald Desloge
-
-
Constructor Summary
Constructors Constructor Description ClientConversation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExchange(ConversationExchange<Request,Response> exchange)
addExchangevoid
addExchange(RequestBuilder<Request> requestBuilder, ResponseValidator<Response> validator)
addExchangevoid
addExchange(Request request, ResponseValidator<Response> validator)
addExchangeboolean
attemptConversation(Client<Request,Response> client)
attemptConversationvoid
expectBanner(ResponseValidator<Response> bannerValidator)
expectBanner
-
-
-
Method Detail
-
expectBanner
public void expectBanner(ResponseValidator<Response> bannerValidator)
expectBanner
- Parameters:
bannerValidator
- aResponseValidator
object.
-
addExchange
public void addExchange(Request request, ResponseValidator<Response> validator)
addExchange
- Parameters:
request
- a Request object.validator
- aResponseValidator
object.
-
addExchange
public void addExchange(RequestBuilder<Request> requestBuilder, ResponseValidator<Response> validator)
addExchange
- Parameters:
requestBuilder
- aRequestBuilder
object.validator
- aResponseValidator
object.
-
addExchange
public void addExchange(ConversationExchange<Request,Response> exchange)
addExchange
- Parameters:
exchange
- aorg.opennms.netmgt.provision.support.ClientConversation.ConversationExchange
object.
-
attemptConversation
public boolean attemptConversation(Client<Request,Response> client) throws IOException, Exception
attemptConversation
- Parameters:
client
- aClient
object.- Returns:
- a boolean.
- Throws:
IOException
- if any.Exception
- if any.
-
-