org.opennms.netmgt.provision.detector.simple.response
Class LineOrientedResponse

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.simple.response.LineOrientedResponse
Direct Known Subclasses:
HttpStatusResponse

public class LineOrientedResponse
extends Object

Author:
brozow

Constructor Summary
LineOrientedResponse(String response)
           
 
Method Summary
 boolean contains(String pattern)
           
 boolean endsWith(String suffix)
           
 boolean equals(String response)
           
 boolean find(String regex)
           
 String getResponse()
           
 boolean matches(String regex)
           
 void receive(BufferedReader in)
           
 void setResponse(String response)
           
 boolean startsWith(String prefix)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineOrientedResponse

public LineOrientedResponse(String response)
Method Detail

receive

public void receive(BufferedReader in)
             throws IOException
Throws:
IOException

startsWith

public boolean startsWith(String prefix)

contains

public boolean contains(String pattern)

endsWith

public boolean endsWith(String suffix)

matches

public boolean matches(String regex)

find

public boolean find(String regex)

equals

public boolean equals(String response)

toString

public String toString()
Overrides:
toString in class Object

setResponse

public void setResponse(String response)

getResponse

public String getResponse()


Copyright © 2009. All Rights Reserved.