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 void
clearErrors()
Clear error count if there were errors earlierboolean
equals(Object obj)
String
getCategory()
Return the category labelint
getErrors()
Return the number of errorsString
getPassword()
Return the passwdURL
getURL()
Return the URLString
getURLString()
Return the URL as a stringString
getUser()
Return the userint
hashCode()
void
incrementErrors()
Increment errors
-
-
-
Constructor Detail
-
HttpPostInfo
public HttpPostInfo(String hurl, String clabel, String user, String passwd) throws MalformedURLException
Constructor- Parameters:
hurl
- aString
object.clabel
- aString
object.user
- aString
object.passwd
- aString
object.- 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
-
-