Common Base Matcher handler¶
Base matcher handler.
- class luna_python_matcher.app_common.handlers.base_matcher_handler.CommonBaseMatcherHandler(request)[source]¶
 Common base matcher handler.
- property configLunaEventsUsage: bool¶
 Get luna-events service usages :returns: True if luna-events service is used
- Return type
 bool
- static convertFromBase64ToBytesIfNeed(data)[source]¶
 Decode bytes from base64 str
- Parameters
 data – base64 string
- Returns
 decoded bytes
- Raises
 VLException(Error.ConvertBase64Error) – if decoding is failed
- Return type
 bytes
- static getDefaultTargets(candidateType)[source]¶
 Get default candidate targets depends on candidate type
- Return type
 frozenset[str]
- validateMatchJson(inputJson, fastjsonSchema)[source]¶
 Validate input json. If error in candidates schemas - validate it separately and raise error with updated detail :param inputJson: inputJson from request :param fastjsonSchema: schema for request validation
- Raises
 VLException(Error.BadInputJson, 400, False) if fail to validate input json –
- Return type
 None
