Class HttpStatusResponse
- java.lang.Object
-
- org.opennms.netmgt.provision.detector.simple.response.LineOrientedResponse
-
- org.opennms.netmgt.provision.detector.simple.response.HttpStatusResponse
-
public class HttpStatusResponse extends LineOrientedResponse
-
-
Constructor Summary
Constructors Constructor Description HttpStatusResponse(java.lang.String response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
validateResponse(java.lang.String pattern, java.lang.String url, boolean isCheckCode, int maxRetCode)
validateResponse: Validate the HTTP response fromLineOrientedResponse.getResponse()
.-
Methods inherited from class org.opennms.netmgt.provision.detector.simple.response.LineOrientedResponse
contains, endsWith, equals, find, getResponse, matches, receive, setResponse, startsWith, toString
-
-
-
-
Method Detail
-
validateResponse
public boolean validateResponse(java.lang.String pattern, java.lang.String url, boolean isCheckCode, int maxRetCode) throws java.lang.Exception
validateResponse: Validate the HTTP response from
LineOrientedResponse.getResponse()
.- Parameters:
pattern
- Unused.url
- Unused.isCheckCode
- Whether to check the response code against maxRetCode for validity.maxRetCode
- The maximum return code to accept.- Returns:
- a boolean.
- Throws:
java.lang.Exception
-
-