Common data structure interfaces (Deprecated)

更新时间:
复制 MD 格式

Introduction

This document describes the common data structures and interfaces in the HTTPDNS software development kit (SDK).

DegradationFilter

An interface that specifies the domain names that are not to be parsed using HTTPDNS.

shouldDegradeHttpDNS

Determines whether to prevent HTTPDNS from parsing the specified domain name.

Interface definition

boolean shouldDegradeHttpDNS(String host)

Parent interface

DegradationFilter

Introduced in version

2.0.2

Deprecated in version

2.4.0

Replacement interface

NotUseHttpDnsFilter

Parameter description

Parameter

Type

Required

Description

host

String

Yes

The domain name.

Return value description

Type

Description

boolean

  • true: Filters the current domain name. The domain name is not parsed by HTTPDNS on the cloud.

  • false: Does not filter the current domain name. The domain name is parsed by HTTPDNS on the cloud.

ILogger

An interface for logging.

log

Logs a message.

Interface definition

void log(String msg)

Introduced in version

1.3.2

Deprecated in version

2.6.9

Parent interface

ILogger

Replacement interface

HttpDnsLogger

Parameters

Parameter

Type

Required

Description

msg

String

Yes

The log message.