Foxit PDF SDK
foxit::pdf::Response类 参考

继承自 Object .

Public 类型

enum  ResponseType { e_TypeNone = 0, e_TypeCRL = 1, e_TypeOCSP = 2 }
 响应类型枚举。 更多...
 

Public 成员函数

 Response (ResponseType type, const String &response_data)
 带参数的构造函数。 更多...
 
 Response ()
 构造函数。
 
 Response (const Response &other)
 带另一个响应对象的构造函数。 更多...
 
 ~Response ()
 析构函数。
 
bool operator != (const Response &other) const
 不相等运算符。 更多...
 
Responseoperator= (const Response &other)
 赋值运算符。 更多...
 
bool operator== (const Response &other) const
 相等运算符。 更多...
 
void Set (ResponseType type, const String &response_data)
 设置值。 更多...
 

Public 属性

String response_data
 响应内容。
 
ResponseType type
 响应类型。请参考从 Response::e_TypeNone 开始的值, 应为这些值之一。
 

详细描述

此类表示证书的响应。

成员枚举类型说明

◆ ResponseType

响应类型枚举。

此枚举的值应单独使用。

枚举值
e_TypeNone 

无响应。

e_TypeCRL 

CRL 响应。

e_TypeOCSP 

OCSP 响应。

构造及析构函数说明

◆ Response() [1/2]

foxit::pdf::Response::Response ( ResponseType  type,
const String response_data 
)
inline

带参数的构造函数。

参数
[in]type响应类型。请参考从 Response::e_TypeNone 开始的值, 应为这些值之一。
[in]response_data响应内容。

◆ Response() [2/2]

foxit::pdf::Response::Response ( const Response other)
inline

带另一个响应对象的构造函数。

参数
[in]other另一个响应对象。

成员函数说明

◆ operator !=()

bool foxit::pdf::Response::operator != ( const Response other) const
inline

不相等运算符。

参数
[in]other另一个响应对象。此函数将检查当前对象是否与此对象不相等。
返回
true 表示不相等,false 表示相等。

◆ operator=()

Response& foxit::pdf::Response::operator= ( const Response other)
inline

赋值运算符。

参数
[in]other另一个响应对象,其值将被赋给当前对象。
返回
当前对象的引用。

◆ operator==()

bool foxit::pdf::Response::operator== ( const Response other) const
inline

相等运算符。

参数
[in]other另一个响应对象。此函数将检查当前对象是否与此对象相等。
返回
true 表示相等,false 表示不相等。

◆ Set()

void foxit::pdf::Response::Set ( ResponseType  type,
const String response_data 
)
inline

设置值。

参数
[in]type响应类型。请参考从 Response::e_TypeNone 开始的值, 应为这些值之一。
[in]response_data响应内容。
返回
无。