org.opennms.netmgt.rtc.datablock
Class HttpPostInfo

java.lang.Object
  extended by 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 , OpenNMS.org

Constructor Summary
HttpPostInfo(String hurl, String clabel, String user, String passwd)
          Constructor
HttpPostInfo(URL hurl, String clabel, String user, String passwd)
          Constructor
 
Method Summary
 void clearErrors()
          Clear error count if there were errors earlier
 boolean equals(Object obj)
           
 String getCategory()
          Return the category label
 int getErrors()
          Return the number of errors
 String getPassword()
          Return the passwd
 URL getURL()
          Return the URL
 String getURLString()
          Return the URL as a string
 String getUser()
          Return the user
 int hashCode()
           
 void incrementErrors()
          Increment errors
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpPostInfo

public HttpPostInfo(URL hurl,
                    String clabel,
                    String user,
                    String passwd)
Constructor


HttpPostInfo

public HttpPostInfo(String hurl,
                    String clabel,
                    String user,
                    String passwd)
             throws MalformedURLException
Constructor

Throws:
MalformedURLException - thrown if the string url passed is not a valid url
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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2009. All Rights Reserved.