org.opennms.netmgt.provision.server.exchange
Class SimpleConversationEndPoint
java.lang.Object
org.opennms.netmgt.provision.server.exchange.SimpleConversationEndPoint
- Direct Known Subclasses:
- SimpleServer
public class SimpleConversationEndPoint
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_conversation
protected Conversation m_conversation
SimpleConversationEndPoint
public SimpleConversationEndPoint()
init
public void init()
throws Exception
- Throws:
Exception
onInit
public void onInit()
setTimeout
public void setTimeout(int timeout)
getTimeout
public int getTimeout()
startsWith
protected ResponseHandler startsWith(String prefix)
- Parameters:
prefix -
- Returns:
- ResponseHandler
contains
protected ResponseHandler contains(String phrase)
- Parameters:
phrase -
- Returns:
- ResponseHandler
matches
protected ResponseHandler matches(String regex)
- Parameters:
regex -
- Returns:
- ResponseHandler
addResponseHandler
protected void addResponseHandler(ResponseHandler responseHandler,
RequestHandler requestHandler)
- Add a ResponseHandler by calling one of the three utility methods:
startsWith(String prefix);
contains(String phrase);
regexMatches(String regex);
Within the extending class's overriding onInit method
singleLineRequest
protected RequestHandler singleLineRequest(String request)
multilineLineRequest
protected RequestHandler multilineLineRequest(String[] request)
Copyright © 2009. All Rights Reserved.