Package org.opennms.netmgt.rtc.datablock
Class HttpPostInfo
- java.lang.Object
-
- org.opennms.netmgt.rtc.datablock.HttpPostInfo
-
public class HttpPostInfo extends Object
Class containing the information for the HTTP POST operations - this gets constructed when each time a subscribe event is received and is basically immutable (except for error count).- Author:
- Sowmya Nataraj
-
-
Constructor Summary
Constructors Constructor Description HttpPostInfo(String hurl, String clabel, String user, String passwd)ConstructorHttpPostInfo(URL hurl, String clabel, String user, String passwd)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearErrors()Clear error count if there were errors earlierbooleanequals(Object obj)StringgetCategory()Return the category labelintgetErrors()Return the number of errorsStringgetPassword()Return the passwdURLgetURL()Return the URLStringgetURLString()Return the URL as a stringStringgetUser()Return the userinthashCode()voidincrementErrors()Increment errors
-
-
-
Constructor Detail
-
HttpPostInfo
public HttpPostInfo(String hurl, String clabel, String user, String passwd) throws MalformedURLException
Constructor- Parameters:
hurl- aStringobject.clabel- aStringobject.user- aStringobject.passwd- aStringobject.- Throws:
MalformedURLException- thrown if the string url passed is not a valid urlMalformedURLException- if any.
-
-
Method Detail
-
incrementErrors
public void incrementErrors()
Increment errors
-
clearErrors
public void clearErrors()
Clear error count if there were errors earlier
-
getURL
public URL getURL()
Return the URL- Returns:
- the URL
-
getURLString
public String getURLString()
Return the URL as a string- Returns:
- the URL as a string
-
getCategory
public String getCategory()
Return the category label- Returns:
- the category label
-
getUser
public String getUser()
Return the user- Returns:
- the user
-
getPassword
public String getPassword()
Return the passwd- Returns:
- the passwd
-
getErrors
public int getErrors()
Return the number of errors- Returns:
- the number of errors
-
-