Class AsyncClientConversation<Request,Response>
- java.lang.Object
-
- org.opennms.netmgt.provision.support.AsyncClientConversation<Request,Response>
-
public class AsyncClientConversation<Request,Response> extends Object
A Conversation is a sequence of
ConversationExchange
instances that are used to describe the sequence of messages that are passed back and forth during a network transaction.- Author:
- Donald Desloge
-
-
Constructor Summary
Constructors Constructor Description AsyncClientConversation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExchange(ConversationExchange<Request,Response> request)
addExchangeRequest
getRequest()
getRequestboolean
hasBanner()
hasBannerboolean
hasExchanges()
hasExchangesboolean
isComplete()
isCompletevoid
setHasBanner(boolean hasBanner)
setHasBannerString
toString()
boolean
validate(Response message)
validate
-
-
-
Method Detail
-
addExchange
public void addExchange(ConversationExchange<Request,Response> request)
addExchange
- Parameters:
request
- aConversationExchange
object.
-
setHasBanner
public void setHasBanner(boolean hasBanner)
setHasBanner
- Parameters:
hasBanner
- a boolean.
-
hasBanner
public boolean hasBanner()
hasBanner
- Returns:
- a boolean.
-
hasExchanges
public boolean hasExchanges()
hasExchanges
- Returns:
- a boolean.
-
isComplete
public boolean isComplete()
isComplete
- Returns:
- a boolean.
-
validate
public boolean validate(Response message)
validate
- Parameters:
message
- a Response object.- Returns:
- a boolean.
-
getRequest
public Request getRequest()
getRequest
- Returns:
- a Request object.
-
-