Class Conversation
- java.lang.Object
-
- org.opennms.netmgt.provision.server.exchange.Conversation
-
- Direct Known Subclasses:
ServerConversation
public class Conversation extends Object
Conversation class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Conversation.ErrorExchange
-
Constructor Summary
Constructors Constructor Description Conversation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addErrorExchange(Exchange ex)
addErrorExchangevoid
addExchange(Exchange exchange)
addExchangeboolean
attemptClientConversation(BufferedReader in, OutputStream out)
attemptClientConversationvoid
attemptServerConversation(BufferedReader in, OutputStream out)
attemptServerConversationstatic ResponseHandler
contains(String response)
containsstatic ResponseHandler
regexpMatches(String response)
regexpMatchesstatic ResponseHandler
startsWith(String response)
startsWith
-
-
-
Method Detail
-
addExchange
public void addExchange(Exchange exchange)
addExchange
- Parameters:
exchange
- aExchange
object.
-
addErrorExchange
public void addErrorExchange(Exchange ex)
addErrorExchange
- Parameters:
ex
- aExchange
object.
-
attemptServerConversation
public void attemptServerConversation(BufferedReader in, OutputStream out) throws Exception
attemptServerConversation
- Parameters:
in
- aBufferedReader
object.out
- aOutputStream
object.- Throws:
Exception
- if any.
-
attemptClientConversation
public boolean attemptClientConversation(BufferedReader in, OutputStream out) throws IOException
attemptClientConversation
- Parameters:
in
- aBufferedReader
object.out
- aOutputStream
object.- Returns:
- a boolean.
- Throws:
IOException
- if any.
-
startsWith
public static ResponseHandler startsWith(String response)
startsWith
- Parameters:
response
- aString
object.- Returns:
- a
ResponseHandler
object.
-
contains
public static ResponseHandler contains(String response)
contains
- Parameters:
response
- aString
object.- Returns:
- a
ResponseHandler
object.
-
regexpMatches
public static ResponseHandler regexpMatches(String response)
regexpMatches
- Parameters:
response
- aString
object.- Returns:
- a
ResponseHandler
object.
-
-