Class HttpPostInfo


  • public class HttpPostInfo
    extends java.lang.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​(java.lang.String hurl, java.lang.String clabel, java.lang.String user, java.lang.String passwd)
      Constructor
      HttpPostInfo​(java.net.URL hurl, java.lang.String clabel, java.lang.String user, java.lang.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 earlier
      boolean equals​(java.lang.Object obj)
      java.lang.String getCategory()
      Return the category label
      int getErrors()
      Return the number of errors
      java.lang.String getPassword()
      Return the passwd
      java.net.URL getURL()
      Return the URL
      java.lang.String getURLString()
      Return the URL as a string
      java.lang.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​(java.net.URL hurl,
                            java.lang.String clabel,
                            java.lang.String user,
                            java.lang.String passwd)
        Constructor
        Parameters:
        hurl - a URL object.
        clabel - a String object.
        user - a String object.
        passwd - a String object.
      • HttpPostInfo

        public HttpPostInfo​(java.lang.String hurl,
                            java.lang.String clabel,
                            java.lang.String user,
                            java.lang.String passwd)
                     throws java.net.MalformedURLException
        Constructor
        Parameters:
        hurl - a String object.
        clabel - a String object.
        user - a String object.
        passwd - a String object.
        Throws:
        java.net.MalformedURLException - thrown if the string url passed is not a valid url
        java.net.MalformedURLException - if any.
    • Method Detail

      • incrementErrors

        public void incrementErrors()
        Increment errors
      • clearErrors

        public void clearErrors()
        Clear error count if there were errors earlier
      • getURL

        public java.net.URL getURL()
        Return the URL
        Returns:
        the URL
      • getURLString

        public java.lang.String getURLString()
        Return the URL as a string
        Returns:
        the URL as a string
      • getCategory

        public java.lang.String getCategory()
        Return the category label
        Returns:
        the category label
      • getUser

        public java.lang.String getUser()
        Return the user
        Returns:
        the user
      • getPassword

        public java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object