HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
dc.EventObjects.URLContentResponse Class Reference
Inheritance diagram for dc.EventObjects.URLContentResponse:
Collaboration diagram for dc.EventObjects.URLContentResponse:

Public Member Functions

def __init__ (self, url, rawContents=None, processedContents=None, status=STATUS_OK)
 
- Public Member Functions inherited from app.Utils.JsonSerializable
def __init__ (self)
 
def toJSON (self)
 

Public Attributes

 url
 
 status
 
 rawContents
 
 processedContents
 
 headers
 
 requests
 
 meta
 
 cookies
 
 urlMd5
 
 rawContentMd5
 
 dbFields
 
 siteId
 
 contentURLMd5
 
 itemProperties
 
 attributes
 

Static Public Attributes

int STATUS_OK = 0
 
int STATUS_URL_NOT_FOUND = 1
 
int STATUS_RAW_CONTENT_NOT_FOUND = 2
 
int STATUS_PROCESSED_CONTENT_NOT_FOUND = 3
 

Additional Inherited Members

- Static Public Member Functions inherited from app.Utils.JsonSerializable
def json_serial (obj)
 

Detailed Description

Definition at line 1001 of file EventObjects.py.

Constructor & Destructor Documentation

◆ __init__()

def dc.EventObjects.URLContentResponse.__init__ (   self,
  url,
  rawContents = None,
  processedContents = None,
  status = STATUS_OK 
)

Definition at line 1021 of file EventObjects.py.

1021  def __init__(self, url, rawContents=None, processedContents=None, status=STATUS_OK):
1022  super(URLContentResponse, self).__init__()
1023  # Init url
1024  self.url = url
1025  # Init status
1026  self.status = status
1027  # Init raw contents list
1028  self.rawContents = []
1029  if rawContents is not None:
1030  self.rawContents = rawContents
1031  # Init processed contents list
1032  self.processedContents = []
1033  if processedContents is not None:
1034  self.processedContents = processedContents
1035  # Addition content elements (lists)
1036  self.headers = []
1037  self.requests = []
1038  self.meta = []
1039  self.cookies = []
1040  self.urlMd5 = None
1041  self.rawContentMd5 = None
1042  self.dbFields = {}
1043  self.siteId = 0
1044  self.contentURLMd5 = ""
1045  self.rawContentMd5 = ""
1046  self.itemProperties = None
1047  self.attributes = []
1048 
1049 
1050 
1051 # #ClientResponse event object
1052 #
1053 # The ClientResponse event object to response on any client request.
1054 #
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Data Documentation

◆ attributes

dc.EventObjects.URLContentResponse.attributes

Definition at line 1047 of file EventObjects.py.

◆ contentURLMd5

dc.EventObjects.URLContentResponse.contentURLMd5

Definition at line 1044 of file EventObjects.py.

◆ cookies

dc.EventObjects.URLContentResponse.cookies

Definition at line 1039 of file EventObjects.py.

◆ dbFields

dc.EventObjects.URLContentResponse.dbFields

Definition at line 1042 of file EventObjects.py.

◆ headers

dc.EventObjects.URLContentResponse.headers

Definition at line 1036 of file EventObjects.py.

◆ itemProperties

dc.EventObjects.URLContentResponse.itemProperties

Definition at line 1046 of file EventObjects.py.

◆ meta

dc.EventObjects.URLContentResponse.meta

Definition at line 1038 of file EventObjects.py.

◆ processedContents

dc.EventObjects.URLContentResponse.processedContents

Definition at line 1032 of file EventObjects.py.

◆ rawContentMd5

dc.EventObjects.URLContentResponse.rawContentMd5

Definition at line 1041 of file EventObjects.py.

◆ rawContents

dc.EventObjects.URLContentResponse.rawContents

Definition at line 1028 of file EventObjects.py.

◆ requests

dc.EventObjects.URLContentResponse.requests

Definition at line 1037 of file EventObjects.py.

◆ siteId

dc.EventObjects.URLContentResponse.siteId

Definition at line 1043 of file EventObjects.py.

◆ status

dc.EventObjects.URLContentResponse.status

Definition at line 1026 of file EventObjects.py.

◆ STATUS_OK

int dc.EventObjects.URLContentResponse.STATUS_OK = 0
static

Definition at line 1003 of file EventObjects.py.

◆ STATUS_PROCESSED_CONTENT_NOT_FOUND

int dc.EventObjects.URLContentResponse.STATUS_PROCESSED_CONTENT_NOT_FOUND = 3
static

Definition at line 1006 of file EventObjects.py.

◆ STATUS_RAW_CONTENT_NOT_FOUND

int dc.EventObjects.URLContentResponse.STATUS_RAW_CONTENT_NOT_FOUND = 2
static

Definition at line 1005 of file EventObjects.py.

◆ STATUS_URL_NOT_FOUND

int dc.EventObjects.URLContentResponse.STATUS_URL_NOT_FOUND = 1
static

Definition at line 1004 of file EventObjects.py.

◆ url

dc.EventObjects.URLContentResponse.url

Definition at line 1024 of file EventObjects.py.

◆ urlMd5

dc.EventObjects.URLContentResponse.urlMd5

Definition at line 1040 of file EventObjects.py.


The documentation for this class was generated from the following file: