def addHttpComponent(self, ob, httpPort='80', httpUseSSL=False, httpUrl='/', httpAuthUser='', httpAuthPassword='', httpJsonPost='', httpFindString=''):
        """ Adds HTTP Component URL monitor"""
        id = ob.id + '_' + re.sub('[^A-Za-z0-9]+', '', httpUrl) + '_'+httpPort
        httpcomponent = HttpComponent(id)
        ob.httpComponents._setObject(httpcomponent.id, httpcomponent)
        httpcomponent = ob.httpComponents._getOb(httpcomponent.id)
        httpcomponent.httpIp = ob.manageIp
        httpcomponent.httpPort = httpPort
        httpcomponent.httpUseSSL = httpUseSSL
        httpcomponent.httpUrl = httpUrl
        httpcomponent.httpAuthUser = httpAuthUser
        httpcomponent.httpAuthPassword = httpAuthPassword
        httpcomponent.httpJsonPost = httpJsonPost
        httpcomponent.httpFindString = httpFindString

        return True, _t(" Added URL Monitor for device %s" % (ob.id))
def manage_addHttpComponent(self, httpPort='80', httpUseSSL=False, httpUrl='/', httpAuthUser='', httpAuthPassword='', httpJsonPost='', httpFindString='',httpPluginFlags='',httpEventComponent='URL',httpEventKey='WWW'):
    """make a http component"""
    from HttpComponent import HttpComponent
    
    newId = self.id + '_' + re.sub('[^A-Za-z0-9]+', '', httpUrl) + '_'+httpPort
    hcid = prepId(newId)
    httpcomponent = HttpComponent(hcid)
    self.httpComponents._setObject(httpcomponent.id, httpcomponent)
    httpcomponent = self.httpComponents._getOb(httpcomponent.id)
    httpcomponent.httpIp = self.manageIp
    httpcomponent.httpPort = httpPort
    httpcomponent.httpUrl = httpUrl
    httpcomponent.httpUseSSL = httpUseSSL
    httpcomponent.httpAuthUser = httpAuthUser
    httpcomponent.httpAuthPassword = httpAuthPassword
    httpcomponent.httpJsonPost = httpJsonPost
    httpcomponent.httpFindString = httpFindString
    httpcomponent.httpPluginFlags = httpPluginFlags
    httpcomponent.httpEventComponent = httpEventComponent
    httpcomponent.httpEventKey = httpEventKey
    return httpcomponent