org.opennms.netmgt.provision.server.exchange
Class SimpleConversationEndPoint

java.lang.Object
  extended by org.opennms.netmgt.provision.server.exchange.SimpleConversationEndPoint
Direct Known Subclasses:
SimpleServer

public class SimpleConversationEndPoint
extends Object


Nested Class Summary
static class SimpleConversationEndPoint.SimpleExchange
           
 
Field Summary
protected  Conversation m_conversation
           
 
Constructor Summary
SimpleConversationEndPoint()
           
 
Method Summary
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
protected  ResponseHandler contains(String phrase)
           
 int getTimeout()
           
 void init()
           
protected  ResponseHandler matches(String regex)
           
protected  RequestHandler multilineLineRequest(String[] request)
           
 void onInit()
           
 void setTimeout(int timeout)
           
protected  RequestHandler singleLineRequest(String request)
           
protected  ResponseHandler startsWith(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_conversation

protected Conversation m_conversation
Constructor Detail

SimpleConversationEndPoint

public SimpleConversationEndPoint()
Method Detail

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.