Index

A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractSmsProvider - Class in cloud.opencode.base.sms.provider
Abstract SMS Provider 抽象短信提供商
AbstractSmsProvider(SmsConfig) - Constructor for class cloud.opencode.base.sms.provider.AbstractSmsProvider
 
accessKey() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns the value of the accessKey record component.
accessKey(String) - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 
accessKeyId() - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Returns the value of the accessKeyId record component.
accessKeySecret() - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Returns the value of the accessKeySecret record component.
acquire(String) - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Acquire permit or throw 获取许可或抛出异常
AliSmsConfig(String, String, String, String) - Constructor for record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Compact constructor with validation 带验证的紧凑构造函数
AliSmsSender - Class in cloud.opencode.base.sms.provider
Aliyun SMS Sender 阿里云短信发送器
AliSmsSender.AliSmsConfig - Record Class in cloud.opencode.base.sms.provider
Aliyun SMS Configuration 阿里云短信配置
aliyun(String) - Static method in record class cloud.opencode.base.sms.config.ProviderConfig
Creates a default Aliyun configuration.
ALIYUN - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
Aliyun SMS (阿里云短信)
apiUrl() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns the value of the apiUrl record component.
apiUrl(String) - Method in class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Set API URL 设置API地址
apiVersion() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the apiVersion record component.
apiVersion(String) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the API version.
appId() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns the value of the appId record component.
appId() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Returns the value of the appId record component.
appId(String) - Method in class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Set app ID 设置应用ID
appKey() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns the value of the appKey record component.
appKey() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Returns the value of the appKey record component.
appKey(String) - Method in class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Set app key 设置应用密钥
appSecret() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Returns the value of the appSecret record component.
AWS_SNS - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
AWS SNS

B

BAIDU - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
Baidu Cloud SMS (百度云短信)
BatchProgress(int, int, int, int) - Constructor for record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Creates an instance of a BatchProgress record class.
BatchResult - Record Class in cloud.opencode.base.sms.batch
Batch Result 批量发送结果
BatchResult(List, int, int, int, Instant, Instant) - Constructor for record class cloud.opencode.base.sms.batch.BatchResult
Creates an instance of a BatchResult record class.
BatchSender - Class in cloud.opencode.base.sms.batch
Batch Sender 批量发送器
BatchSender.BatchProgress - Record Class in cloud.opencode.base.sms.batch
Batch Progress 批量进度
BatchSender.Builder - Class in cloud.opencode.base.sms.batch
Builder for BatchSender BatchSender构建器
batchSize(int) - Method in class cloud.opencode.base.sms.batch.BatchSender.Builder
Set batch size 设置批量大小
bracePattern() - Static method in class cloud.opencode.base.sms.template.TemplateParser
Create brace pattern parser ({{var}}) 创建双大括号模式解析器
build() - Method in class cloud.opencode.base.sms.batch.BatchSender.Builder
Build batch sender 构建批量发送器
build() - Method in class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Build the config 构建配置
build() - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Builds the ProviderConfig.
build() - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 
build() - Method in class cloud.opencode.base.sms.message.SmsMessage.Builder
 
buildAuthHeaders() - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
Build auth headers 构建认证头
builder() - Static method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Create builder 创建构建器
builder() - Static method in record class cloud.opencode.base.sms.config.ProviderConfig
Creates a builder.
builder() - Static method in record class cloud.opencode.base.sms.config.SmsConfig
 
builder() - Static method in record class cloud.opencode.base.sms.message.SmsMessage
Create builder 创建构建器
builder(SmsProvider) - Static method in class cloud.opencode.base.sms.batch.BatchSender
Create builder 创建构建器
Builder() - Constructor for class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
 
Builder() - Constructor for class cloud.opencode.base.sms.config.ProviderConfig.Builder
 
Builder() - Constructor for class cloud.opencode.base.sms.config.SmsConfig.Builder
 
Builder() - Constructor for class cloud.opencode.base.sms.message.SmsMessage.Builder
 
buildRequestBody(SmsMessage) - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
Build request body 构建请求体

C

channelId() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Returns the value of the channelId record component.
clear() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
Clear sensitive data 清除敏感数据
clear() - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Clear all templates 清除所有模板
clear() - Method in class cloud.opencode.base.sms.template.TemplateManager
Clears all templates.
clear() - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Clear all records 清除所有记录
close() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
 
close() - Method in class cloud.opencode.base.sms.OpenSms
Close provider 关闭提供商
close() - Method in interface cloud.opencode.base.sms.provider.SmsProvider
Close provider resources 关闭提供商资源
close() - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
 
cloud.opencode.base.sms - module cloud.opencode.base.sms
OpenCode Base SMS Module OpenCode 基础短信模块
cloud.opencode.base.sms - package cloud.opencode.base.sms
 
cloud.opencode.base.sms.batch - package cloud.opencode.base.sms.batch
 
cloud.opencode.base.sms.config - package cloud.opencode.base.sms.config
 
cloud.opencode.base.sms.exception - package cloud.opencode.base.sms.exception
 
cloud.opencode.base.sms.message - package cloud.opencode.base.sms.message
 
cloud.opencode.base.sms.provider - package cloud.opencode.base.sms.provider
 
cloud.opencode.base.sms.template - package cloud.opencode.base.sms.template
 
cloud.opencode.base.sms.util - package cloud.opencode.base.sms.util
 
cloud.opencode.base.sms.validation - package cloud.opencode.base.sms.validation
 
completed() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Returns the value of the completed record component.
concurrency(int) - Method in class cloud.opencode.base.sms.batch.BatchSender.Builder
Set concurrency 设置并发数
config - Variable in class cloud.opencode.base.sms.provider.AbstractSmsProvider
 
CONNECTION - Enum constant in enum class cloud.opencode.base.sms.exception.SmsTimeoutException.TimeoutType
Connection timeout | 连接超时
CONNECTION_TIMEOUT - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
connectionRefused(String, int) - Static method in exception class cloud.opencode.base.sms.exception.SmsNetworkException
Creates a connection refused exception 创建连接被拒绝异常
connectionTimeout(Duration) - Static method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Creates a connection timeout exception 创建连接超时异常
connectionTimeout(Duration, Throwable) - Static method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Creates a connection timeout exception with cause 创建带原因的连接超时异常
connectTimeout() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the connectTimeout record component.
connectTimeout(Duration) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the connection timeout.
console() - Static method in class cloud.opencode.base.sms.OpenSms
Create console mock instance 创建控制台模拟实例
console() - Static method in class cloud.opencode.base.sms.provider.SmsProviderFactory
Get console provider 获取控制台提供商
CONSOLE - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
Console mock provider (控制台模拟提供商)
ConsoleSmsProvider - Class in cloud.opencode.base.sms.provider
Console SMS Provider 控制台短信提供商
ConsoleSmsProvider() - Constructor for class cloud.opencode.base.sms.provider.ConsoleSmsProvider
 
ConsoleSmsProvider(SmsConfig) - Constructor for class cloud.opencode.base.sms.provider.ConsoleSmsProvider
 
contains(String) - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Check if template exists 检查模板是否存在
contains(String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Checks if a template exists.
content() - Method in record class cloud.opencode.base.sms.message.SmsMessage
Returns the value of the content record component.
content() - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Returns the value of the content record component.
content(String) - Method in class cloud.opencode.base.sms.message.SmsMessage.Builder
 
countVariables(String) - Method in class cloud.opencode.base.sms.template.TemplateParser
Count variables in template 统计模板中的变量数
create() - Static method in class cloud.opencode.base.sms.template.TemplateManager
Creates new template manager.
create() - Static method in class cloud.opencode.base.sms.template.TemplateParser
Create default parser 创建默认解析器
create(SmsConfig) - Static method in class cloud.opencode.base.sms.provider.SmsProviderFactory
Create provider from config 从配置创建提供商
create(SmsConfig) - Method in interface cloud.opencode.base.sms.provider.SmsProviderFactory.SpiProvider
 
create(AliSmsSender.AliSmsConfig) - Static method in class cloud.opencode.base.sms.provider.AliSmsSender
Create AliSmsSender instance 创建阿里云短信发送器实例
create(HuaweiSmsSender.HuaweiSmsConfig) - Static method in class cloud.opencode.base.sms.provider.HuaweiSmsSender
Create Huawei SMS sender with config 使用配置创建华为短信发送器
create(TencentSmsSender.TencentSmsConfig) - Static method in class cloud.opencode.base.sms.provider.TencentSmsSender
Create Tencent SMS sender 创建腾讯云短信发送器
createMessage(String, String, Map) - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Create message from template 从模板创建消息
createMessage(String, String, Map) - Method in class cloud.opencode.base.sms.template.TemplateManager
Creates a message from template.
createMessages(String, List, Map) - Method in class cloud.opencode.base.sms.template.TemplateManager
Creates messages for multiple recipients.
CUSTOM - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
Custom provider (自定义提供商)

D

doSend(SmsMessage) - Method in class cloud.opencode.base.sms.provider.AbstractSmsProvider
Actual send implementation 实际发送实现
doSend(SmsMessage) - Method in class cloud.opencode.base.sms.provider.ConsoleSmsProvider
 

E

empty() - Static method in record class cloud.opencode.base.sms.batch.BatchResult
Create empty batch result 创建空批量结果
endpoint() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the endpoint record component.
endpoint(String) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the API endpoint.
endTime() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns the value of the endTime record component.
equals(Object) - Method in record class cloud.opencode.base.sms.batch.BatchResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.config.SmsConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.message.SmsMessage
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.message.SmsResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Indicates whether some other object is "equal to" this one.
errorCode() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns the value of the errorCode record component.
errorMessage() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns the value of the errorMessage record component.
escapeValue(String) - Static method in class cloud.opencode.base.sms.template.TemplateParser
Escape special characters in value 转义值中的特殊字符
extra() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns the value of the extra record component.
extra(String, String) - Method in class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Add extra config 添加额外配置
extractCountryCode(String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Extract country code from phone number 从手机号码提取国家代码
extractCountryCode(String) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Extract country code 提取国家代码
extractVariables(String) - Method in class cloud.opencode.base.sms.template.TemplateParser
Parse template and extract variable names 解析模板并提取变量名
extraOptions() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the extraOptions record component.
extraOptions(Map) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets extra options.
extraProperties() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns the value of the extraProperties record component.
extraProperties(Map) - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 
extraVariables() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Returns the value of the extraVariables record component.

F

failed(String, Throwable) - Static method in exception class cloud.opencode.base.sms.exception.SmsSendException
 
failure() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Returns the value of the failure record component.
failure(String, String) - Static method in record class cloud.opencode.base.sms.message.SmsResult
Create failure result without phone 创建不带手机号的失败结果
failure(String, String, String) - Static method in record class cloud.opencode.base.sms.message.SmsResult
Create failure result 创建失败结果
failureCount() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns the value of the failureCount record component.
find(String) - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Get template as Optional 以Optional获取模板
find(String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Finds a template by ID.
forEach(Consumer) - Method in class cloud.opencode.base.sms.template.TemplateManager
Iterates over all templates.
format(String, Object...) - Static method in class cloud.opencode.base.sms.validation.SmsLogSanitizer
Create safe log message 创建安全的日志消息
formatChina(String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Format China mobile number 格式化中国手机号码
formatWithCountryCode(String, String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Format with country code 使用国家代码格式化
fromCode(String) - Static method in enum class cloud.opencode.base.sms.config.SmsProviderType
 

G

get(String) - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Get template by ID 按ID获取模板
get(String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Gets a template by ID.
getAll() - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Get all templates 获取所有模板
getAll() - Method in class cloud.opencode.base.sms.template.TemplateManager
Gets all templates.
getApiUrl() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
Get API URL 获取API地址
getAppId() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
Get app ID 获取应用ID
getAppKey() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
Get app key 获取应用密钥
getCode() - Method in enum class cloud.opencode.base.sms.config.SmsProviderType
 
getCode() - Method in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
getCode() - Method in exception class cloud.opencode.base.sms.exception.SmsException
 
getConfig() - Method in class cloud.opencode.base.sms.provider.AbstractSmsProvider
Get config 获取配置
getConfig() - Method in class cloud.opencode.base.sms.provider.AliSmsSender
Get configuration 获取配置
getConfig() - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
Get config 获取配置
getConfig() - Method in class cloud.opencode.base.sms.provider.HuaweiSmsSender
Get the configuration 获取配置
getConfig() - Method in class cloud.opencode.base.sms.provider.TencentSmsSender
Get the configuration 获取配置
getCountryDialingCode(String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Get country code 获取国家代码
getCurrentCount(String) - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Get current count for phone 获取手机号当前计数
getDuration() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Get duration 获取耗时
getEndpoint() - Method in class cloud.opencode.base.sms.provider.HuaweiSmsSender
Get the endpoint URL 获取端点URL
getErrorCode() - Method in exception class cloud.opencode.base.sms.exception.SmsException
 
getErrorMessage() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Get error message 获取错误消息
getFailureCountsByCode() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Get failure counts by error code 按错误码获取失败统计
getFailureResults() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Get failure results 获取失败结果
getHost() - Method in exception class cloud.opencode.base.sms.exception.SmsNetworkException
Gets the target host 获取目标主机
getHttpClient() - Method in class cloud.opencode.base.sms.provider.AliSmsSender
Get shared HTTP client 获取共享HTTP客户端
getHttpClient() - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
Get shared HTTP client 获取共享HTTP客户端
getLimitPerDay() - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Get limit per day 获取每天限制
getLimitPerHour() - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Get limit per hour 获取每小时限制
getLimitPerMinute() - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Get limit per minute 获取每分钟限制
getMaskedPhone() - Method in exception class cloud.opencode.base.sms.exception.SmsRateLimitException
Get masked phone number 获取脱敏后的手机号
getMessage() - Method in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
getMissingVariables(Map) - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Get missing variables 获取缺失的变量
getName() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
Get name 获取名称
getName() - Method in class cloud.opencode.base.sms.provider.AliSmsSender
 
getName() - Method in class cloud.opencode.base.sms.provider.ConsoleSmsProvider
 
getName() - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
 
getName() - Method in class cloud.opencode.base.sms.provider.HuaweiSmsSender
 
getName() - Method in interface cloud.opencode.base.sms.provider.SmsProvider
Get provider name 获取提供商名称
getName() - Method in class cloud.opencode.base.sms.provider.TencentSmsSender
Get provider name 获取提供商名称
getOperation() - Method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Gets the operation that timed out 获取超时的操作
getOption(String) - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Gets an extra option value.
getOption(String, String) - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Gets an extra option value with default.
getPercentage() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Get progress percentage 获取进度百分比
getPhone() - Method in exception class cloud.opencode.base.sms.exception.SmsRateLimitException
Get phone number 获取手机号
getPhoneNumber() - Method in exception class cloud.opencode.base.sms.exception.SmsSendException
 
getPort() - Method in exception class cloud.opencode.base.sms.exception.SmsNetworkException
Gets the target port 获取目标端口
getProvider() - Method in class cloud.opencode.base.sms.OpenSms
Get provider 获取提供商
getProviderCode() - Method in exception class cloud.opencode.base.sms.exception.SmsSendException
 
getRetryAfter() - Method in exception class cloud.opencode.base.sms.exception.SmsRateLimitException
Get retry after duration 获取重试等待时间
getRetryAfter(String) - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Get retry after duration 获取重试等待时间
getRetryAfterSeconds() - Method in exception class cloud.opencode.base.sms.exception.SmsRateLimitException
Get retry after in seconds 获取重试等待秒数
getSignName() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
Get sign name 获取签名名称
getSignName() - Method in class cloud.opencode.base.sms.provider.AbstractSmsProvider
Get sign name 获取签名名称
getStatusCode() - Method in exception class cloud.opencode.base.sms.exception.SmsNetworkException
Gets the HTTP status code 获取HTTP状态码
getSuccessRate() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Get success rate 获取成功率
getSuccessResults() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Get success results 获取成功结果
getTemplateId() - Method in exception class cloud.opencode.base.sms.exception.SmsTemplateException
 
getTemplateIds() - Method in class cloud.opencode.base.sms.template.TemplateManager
Gets template IDs.
getTemplateRegistry() - Method in class cloud.opencode.base.sms.OpenSms
Get template registry 获取模板注册表
getThroughput() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Get throughput (messages per second) 获取吞吐量(每秒消息数)
getTimeout() - Method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Gets the timeout duration 获取超时时长
getTimeoutType() - Method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Gets the timeout type 获取超时类型
getVariableName() - Method in exception class cloud.opencode.base.sms.exception.SmsTemplateException
 

H

hasAllVariables(Map) - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Check if all variables are provided 检查是否提供了所有变量
hasExtra() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Check if has extra variables 检查是否有多余变量
hashCode() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.message.SmsMessage
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Returns a hash code value for this object.
hashPattern() - Static method in class cloud.opencode.base.sms.template.TemplateParser
Create hash pattern parser (#{var}) 创建井号模式解析器
hasMissing() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Check if has missing variables 检查是否有缺失变量
hasVariables(String) - Method in class cloud.opencode.base.sms.template.TemplateParser
Check if template has variables 检查模板是否包含变量
httpError(String, int, String) - Static method in exception class cloud.opencode.base.sms.exception.SmsNetworkException
Creates an HTTP error exception 创建HTTP错误异常
HttpSmsConfig - Record Class in cloud.opencode.base.sms.config
HTTP SMS Config HTTP短信配置
HttpSmsConfig(String, String, String, String, String, Map) - Constructor for record class cloud.opencode.base.sms.config.HttpSmsConfig
Creates an instance of a HttpSmsConfig record class.
HttpSmsConfig.Builder - Class in cloud.opencode.base.sms.config
HTTP SMS Config Builder HTTP短信配置构建器
HttpSmsProvider - Class in cloud.opencode.base.sms.provider
HTTP SMS Provider HTTP短信提供商
HttpSmsProvider(HttpSmsConfig) - Constructor for class cloud.opencode.base.sms.provider.HttpSmsProvider
Create HTTP SMS provider 创建HTTP短信提供商
huawei(String) - Static method in record class cloud.opencode.base.sms.config.ProviderConfig
Creates a default Huawei configuration.
HUAWEI - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
Huawei Cloud SMS (华为云短信)
HuaweiSmsConfig(String, String, String, String, String) - Constructor for record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Create config with validation 创建带验证的配置
HuaweiSmsSender - Class in cloud.opencode.base.sms.provider
Huawei Cloud SMS Sender 华为云短信发送器
HuaweiSmsSender.HuaweiSmsConfig - Record Class in cloud.opencode.base.sms.provider
Huawei SMS Configuration 华为短信配置

I

id() - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Returns the value of the id record component.
importFrom(SmsTemplateRegistry) - Method in class cloud.opencode.base.sms.template.TemplateManager
Imports templates from a registry.
invalid(String) - Static method in exception class cloud.opencode.base.sms.exception.SmsTemplateException
 
INVALID_ENCODING - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
INVALID_PHONE_NUMBER - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
isAllFailed() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Check if all failed 检查是否全部失败
isAllSuccess() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Check if all succeeded 检查是否全部成功
isAvailable() - Method in class cloud.opencode.base.sms.OpenSms
Check if provider is available 检查提供商是否可用
isAvailable() - Method in class cloud.opencode.base.sms.provider.AliSmsSender
 
isAvailable() - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
 
isAvailable() - Method in class cloud.opencode.base.sms.provider.HuaweiSmsSender
 
isAvailable() - Method in interface cloud.opencode.base.sms.provider.SmsProvider
Check if provider is available 检查提供商是否可用
isAvailable() - Method in class cloud.opencode.base.sms.provider.TencentSmsSender
Check if provider is available 检查提供商是否可用
isChinaMobile(String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Validate China mobile number 验证中国手机号码
isComplete() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Check if complete 检查是否完成
isConfigured() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Check if configured 检查是否已配置
isConfigured() - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Check if config is valid 检查配置是否有效
isConfigured() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Check if config is properly configured 检查配置是否正确配置
isConfigured() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Check if configuration is valid 检查配置是否有效
isFailed() - Method in record class cloud.opencode.base.sms.message.SmsResult
Check if failed 检查是否失败
isPartialSuccess() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Check if partial success 检查是否部分成功
isValid(String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Validate phone number 验证手机号码
isValid(String) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Validate phone number (any format) 验证手机号(任意格式)
isValidChinaMobile(String) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Validate China mobile phone number 验证中国大陆手机号
isValidE164(String) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Validate E.164 format phone number 验证E.164格式手机号

L

lenient(String) - Static method in class cloud.opencode.base.sms.template.TemplateParser
Create lenient parser 创建宽松模式解析器
loadFromClasspath(String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Loads templates from classpath directory.
loadFromDirectory(Path) - Method in class cloud.opencode.base.sms.template.TemplateManager
Loads templates from directory.
loadFromFile(Path) - Method in class cloud.opencode.base.sms.template.TemplateManager
Loads a template from file.
loadFromResource(String, String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Loads a template from classpath resource.

M

mask(String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Mask phone number for display 掩码手机号码用于显示
mask(String) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Mask phone number for logging 脱敏手机号用于日志
maxRetries() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the maxRetries record component.
maxRetries(int) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the max retries.
MESSAGE_EMPTY - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
MESSAGE_TOO_LONG - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
messageId() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns the value of the messageId record component.
missingVariables() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Returns the value of the missingVariables record component.

N

name() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns the value of the name record component.
name() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the name record component.
name() - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Returns the value of the name record component.
name(String) - Method in class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Set name 设置名称
name(String) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the provider name.
NETWORK_ERROR - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
networkError(String, Throwable) - Static method in exception class cloud.opencode.base.sms.exception.SmsNetworkException
Creates a network error exception 创建网络错误异常
networkError(URI, Throwable) - Static method in exception class cloud.opencode.base.sms.exception.SmsNetworkException
Creates a network error exception for a URI 为URI创建网络错误异常
normalize(String) - Static method in class cloud.opencode.base.sms.util.PhoneNumberUtil
Normalize phone number 标准化手机号码
normalize(String) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Normalize phone number 标准化手机号
notFound(String) - Static method in exception class cloud.opencode.base.sms.exception.SmsTemplateException
 

O

of(SmsConfig) - Static method in class cloud.opencode.base.sms.OpenSms
Create from config 从配置创建
of(SmsProvider) - Static method in class cloud.opencode.base.sms.OpenSms
Create from provider 从提供商创建
of(String, String) - Static method in record class cloud.opencode.base.sms.message.SmsMessage
Create message with content 使用内容创建消息
of(String, String) - Static method in record class cloud.opencode.base.sms.template.SmsTemplate
Create template from content 从内容创建模板
of(String, String, String) - Static method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Create config with default region 使用默认区域创建配置
of(String, String, String) - Static method in record class cloud.opencode.base.sms.template.SmsTemplate
Create template with name 使用名称创建模板
of(String, String, String, String) - Static method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Create config with default region 使用默认区域创建配置
of(List, Instant) - Static method in record class cloud.opencode.base.sms.batch.BatchResult
Create batch result from results 从结果列表创建批量结果
ofTemplate(String, String, Map) - Static method in record class cloud.opencode.base.sms.message.SmsMessage
Create message with template 使用模板创建消息
onProgress(Consumer) - Method in class cloud.opencode.base.sms.batch.BatchSender.Builder
Set progress callback 设置进度回调
OpenSms - Class in cloud.opencode.base.sms
Open SMS 开放短信
option(String, String) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Adds an extra option.

P

parseResponse(String, int) - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
Parse response 解析响应
PHONE_NUMBER_BLOCKED - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
phoneNumber() - Method in record class cloud.opencode.base.sms.message.SmsMessage
Returns the value of the phoneNumber record component.
phoneNumber() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns the value of the phoneNumber record component.
phoneNumber(String) - Method in class cloud.opencode.base.sms.message.SmsMessage.Builder
 
PhoneNumberUtil - Class in cloud.opencode.base.sms.util
Phone Number Utility 手机号码工具类
PhoneValidator - Class in cloud.opencode.base.sms.validation
Phone Validator 手机号验证器
PROVIDER_ERROR - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
PROVIDER_NOT_CONFIGURED - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
PROVIDER_UNAVAILABLE - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
ProviderConfig - Record Class in cloud.opencode.base.sms.config
Provider Config - SMS provider specific configuration 服务商配置 - 短信服务商特定配置
ProviderConfig(String, String, String, String, Duration, Duration, int, String, Map) - Constructor for record class cloud.opencode.base.sms.config.ProviderConfig
Canonical constructor with validation.
ProviderConfig.Builder - Class in cloud.opencode.base.sms.config
Builder for ProviderConfig.
providerType() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns the value of the providerType record component.
providerType(SmsProviderType) - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 

R

rateLimited(String) - Static method in exception class cloud.opencode.base.sms.exception.SmsSendException
 
READ - Enum constant in enum class cloud.opencode.base.sms.exception.SmsTimeoutException.TimeoutType
Read/response timeout | 读取/响应超时
READ_TIMEOUT - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
readTimeout(Duration) - Static method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Creates a read timeout exception 创建读取超时异常
readTimeout(Duration, Throwable) - Static method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Creates a read timeout exception with cause 创建带原因的读取超时异常
region() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the region record component.
region() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns the value of the region record component.
region() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Returns the value of the region record component.
region() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Returns the value of the region record component.
region(String) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the region.
region(String) - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 
regionId() - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Returns the value of the regionId record component.
register(SmsTemplate) - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Register template 注册模板
register(SmsTemplate) - Method in class cloud.opencode.base.sms.template.TemplateManager
Registers a template.
register(String, String) - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Register template from content 从内容注册模板
register(String, String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Registers a template by ID and content.
register(String, String, String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Registers a template with description.
registerProvider(SmsProviderType, Function) - Static method in class cloud.opencode.base.sms.provider.SmsProviderFactory
Register custom provider factory 注册自定义提供商工厂
registerTemplate(SmsTemplate) - Method in class cloud.opencode.base.sms.OpenSms
Register template 注册模板
registerTemplate(String, String) - Method in class cloud.opencode.base.sms.OpenSms
Register template 注册模板
render(String, Map) - Method in class cloud.opencode.base.sms.template.TemplateManager
Renders a template with variables.
render(String, Map) - Method in class cloud.opencode.base.sms.template.TemplateParser
Render template with variables 使用变量渲染模板
render(Map) - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Render template with variables 使用变量渲染模板
requiredVariables() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Returns the value of the requiredVariables record component.
reset(String) - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Reset limits for phone 重置手机号的限制
results() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns the value of the results record component.

S

sanitize(SmsMessage) - Static method in class cloud.opencode.base.sms.validation.SmsLogSanitizer
Sanitize SMS message for logging 脱敏短信消息用于日志
sanitizeConfig(Map) - Static method in class cloud.opencode.base.sms.validation.SmsLogSanitizer
Sanitize config map for logging 脱敏配置映射用于日志
sanitizeError(String) - Static method in class cloud.opencode.base.sms.validation.SmsLogSanitizer
Sanitize error message 脱敏错误消息
sanitizeParams(Map) - Static method in class cloud.opencode.base.sms.validation.SmsLogSanitizer
Sanitize params for logging 脱敏参数用于日志
sdkAppId() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the sdkAppId record component.
sdkAppId(String) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the SDK app ID (for Tencent).
secretId() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Returns the value of the secretId record component.
secretKey() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns the value of the secretKey record component.
secretKey() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Returns the value of the secretKey record component.
secretKey(String) - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 
SecureSmsConfig - Class in cloud.opencode.base.sms.config
Secure SMS Config 安全短信配置
SecureSmsConfig(HttpSmsConfig) - Constructor for class cloud.opencode.base.sms.config.SecureSmsConfig
Create secure config from HTTP config 从HTTP配置创建安全配置
send(SmsMessage) - Method in class cloud.opencode.base.sms.OpenSms
Send SMS message 发送短信消息
send(SmsMessage) - Method in class cloud.opencode.base.sms.provider.AbstractSmsProvider
 
send(SmsMessage) - Method in class cloud.opencode.base.sms.provider.AliSmsSender
 
send(SmsMessage) - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
 
send(SmsMessage) - Method in class cloud.opencode.base.sms.provider.HuaweiSmsSender
 
send(SmsMessage) - Method in interface cloud.opencode.base.sms.provider.SmsProvider
Send single SMS 发送单条短信
send(SmsMessage) - Method in class cloud.opencode.base.sms.provider.TencentSmsSender
Send SMS message 发送短信消息
send(String, String) - Method in class cloud.opencode.base.sms.OpenSms
Send SMS 发送短信
send(List) - Method in class cloud.opencode.base.sms.batch.BatchSender
Send batch messages 批量发送消息
SEND_FAILED - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
SEND_RATE_LIMITED - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
SEND_TIMEOUT - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
sendAsync(List) - Method in class cloud.opencode.base.sms.batch.BatchSender
Send batch messages asynchronously 异步批量发送消息
sendBatch(List) - Method in class cloud.opencode.base.sms.OpenSms
Send batch SMS 批量发送短信
sendBatch(List) - Method in class cloud.opencode.base.sms.provider.AliSmsSender
 
sendBatch(List) - Method in class cloud.opencode.base.sms.provider.HttpSmsProvider
 
sendBatch(List) - Method in class cloud.opencode.base.sms.provider.HuaweiSmsSender
 
sendBatch(List) - Method in interface cloud.opencode.base.sms.provider.SmsProvider
Send batch SMS 批量发送短信
sendBatch(List) - Method in class cloud.opencode.base.sms.provider.TencentSmsSender
Send batch SMS messages 批量发送短信消息
sender() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Returns the value of the sender record component.
sendTemplate(String, String, Map) - Method in class cloud.opencode.base.sms.OpenSms
Send using template 使用模板发送
sendTemplateToAll(String, List, Map) - Method in class cloud.opencode.base.sms.OpenSms
Send template to multiple recipients 使用模板发送给多个收件人
sendTimeout(Duration, String) - Static method in exception class cloud.opencode.base.sms.exception.SmsTimeoutException
Creates a send timeout exception 创建发送超时异常
sendToAll(List, String) - Method in class cloud.opencode.base.sms.OpenSms
Send to multiple recipients 发送给多个收件人
sendToPhones(List, SmsMessage) - Method in class cloud.opencode.base.sms.batch.BatchSender
Send to multiple phones with same template 使用相同模板发送给多个手机号
signName() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns the value of the signName record component.
signName() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns the value of the signName record component.
signName() - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Returns the value of the signName record component.
signName() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Returns the value of the signName record component.
signName(String) - Method in class cloud.opencode.base.sms.config.HttpSmsConfig.Builder
Set sign name 设置签名名称
signName(String) - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 
size() - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Get template count 获取模板数量
size() - Method in class cloud.opencode.base.sms.template.TemplateManager
Gets the template count.
SmsConfig - Record Class in cloud.opencode.base.sms.config
SMS Config 短信配置
SmsConfig(SmsProviderType, String, String, String, String, Duration, Map) - Constructor for record class cloud.opencode.base.sms.config.SmsConfig
Creates an instance of a SmsConfig record class.
SmsConfig.Builder - Class in cloud.opencode.base.sms.config
Builder for SmsConfig SmsConfig构建器
SmsErrorCode - Enum Class in cloud.opencode.base.sms.exception
SMS Error Code 短信错误码
SmsException - Exception Class in cloud.opencode.base.sms.exception
SMS Exception 短信异常
SmsException(SmsErrorCode) - Constructor for exception class cloud.opencode.base.sms.exception.SmsException
 
SmsException(SmsErrorCode, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsException
 
SmsException(SmsErrorCode, String, Throwable) - Constructor for exception class cloud.opencode.base.sms.exception.SmsException
 
SmsException(SmsErrorCode, Throwable) - Constructor for exception class cloud.opencode.base.sms.exception.SmsException
 
SmsLogSanitizer - Class in cloud.opencode.base.sms.validation
SMS Log Sanitizer 短信日志脱敏工具
SmsMessage - Record Class in cloud.opencode.base.sms.message
SMS Message 短信消息
SmsMessage(String, String, String, Map) - Constructor for record class cloud.opencode.base.sms.message.SmsMessage
Creates an instance of a SmsMessage record class.
SmsMessage.Builder - Class in cloud.opencode.base.sms.message
Builder for SmsMessage SmsMessage构建器
SmsNetworkException - Exception Class in cloud.opencode.base.sms.exception
SMS Network Exception 短信网络异常
SmsNetworkException(SmsErrorCode, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsNetworkException
 
SmsNetworkException(SmsErrorCode, String, int) - Constructor for exception class cloud.opencode.base.sms.exception.SmsNetworkException
 
SmsNetworkException(SmsErrorCode, String, int, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsNetworkException
 
SmsNetworkException(SmsErrorCode, String, Throwable) - Constructor for exception class cloud.opencode.base.sms.exception.SmsNetworkException
 
SmsProvider - Interface in cloud.opencode.base.sms.provider
SMS Provider 短信提供商
SmsProviderFactory - Class in cloud.opencode.base.sms.provider
SMS Provider Factory 短信提供商工厂
SmsProviderFactory.SpiProvider - Interface in cloud.opencode.base.sms.provider
SPI interface for custom providers 自定义提供商的SPI接口
SmsProviderType - Enum Class in cloud.opencode.base.sms.config
SMS Provider Type 短信提供商类型
SmsRateLimiter - Class in cloud.opencode.base.sms.validation
SMS Rate Limiter 短信频率限制器
SmsRateLimiter() - Constructor for class cloud.opencode.base.sms.validation.SmsRateLimiter
Create rate limiter with defaults 使用默认值创建限流器
SmsRateLimiter(int, int, int) - Constructor for class cloud.opencode.base.sms.validation.SmsRateLimiter
Create rate limiter 创建限流器
SmsRateLimitException - Exception Class in cloud.opencode.base.sms.exception
SMS Rate Limit Exception 短信频率限制异常
SmsRateLimitException(String, Duration) - Constructor for exception class cloud.opencode.base.sms.exception.SmsRateLimitException
Create rate limit exception 创建频率限制异常
SmsResult - Record Class in cloud.opencode.base.sms.message
SMS Result 短信结果
SmsResult(boolean, String, String, String, String, Instant) - Constructor for record class cloud.opencode.base.sms.message.SmsResult
Creates an instance of a SmsResult record class.
SmsSendException - Exception Class in cloud.opencode.base.sms.exception
SMS Send Exception 短信发送异常
SmsSendException(SmsErrorCode, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsSendException
 
SmsSendException(SmsErrorCode, String, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsSendException
 
SmsSendException(SmsErrorCode, String, Throwable) - Constructor for exception class cloud.opencode.base.sms.exception.SmsSendException
 
SmsTemplate - Record Class in cloud.opencode.base.sms.template
SMS Template 短信模板
SmsTemplate(String, String, String, List) - Constructor for record class cloud.opencode.base.sms.template.SmsTemplate
Creates an instance of a SmsTemplate record class.
SmsTemplateException - Exception Class in cloud.opencode.base.sms.exception
SMS Template Exception 短信模板异常
SmsTemplateException(SmsErrorCode, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsTemplateException
 
SmsTemplateException(SmsErrorCode, String, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsTemplateException
 
SmsTemplateRegistry - Class in cloud.opencode.base.sms.template
SMS Template Registry 短信模板注册表
SmsTemplateRegistry() - Constructor for class cloud.opencode.base.sms.template.SmsTemplateRegistry
 
SmsTimeoutException - Exception Class in cloud.opencode.base.sms.exception
SMS Timeout Exception 短信超时异常
SmsTimeoutException(SmsErrorCode, SmsTimeoutException.TimeoutType, Duration) - Constructor for exception class cloud.opencode.base.sms.exception.SmsTimeoutException
 
SmsTimeoutException(SmsErrorCode, SmsTimeoutException.TimeoutType, Duration, String) - Constructor for exception class cloud.opencode.base.sms.exception.SmsTimeoutException
 
SmsTimeoutException(SmsErrorCode, SmsTimeoutException.TimeoutType, Duration, Throwable) - Constructor for exception class cloud.opencode.base.sms.exception.SmsTimeoutException
 
SmsTimeoutException.TimeoutType - Enum Class in cloud.opencode.base.sms.exception
Timeout type enumeration 超时类型枚举
startTime() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns the value of the startTime record component.
success() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Returns the value of the success record component.
success() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns the value of the success record component.
success(String) - Static method in record class cloud.opencode.base.sms.message.SmsResult
Create success result without phone 创建不带手机号的成功结果
success(String, String) - Static method in record class cloud.opencode.base.sms.message.SmsResult
Create success result 创建成功结果
successCount() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns the value of the successCount record component.
supports(SmsProviderType) - Method in interface cloud.opencode.base.sms.provider.SmsProviderFactory.SpiProvider
 

T

TEMPLATE_INVALID - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
TEMPLATE_NOT_FOUND - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
TEMPLATE_VARIABLE_MISSING - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
templateId() - Method in record class cloud.opencode.base.sms.message.SmsMessage
Returns the value of the templateId record component.
templateId(String) - Method in class cloud.opencode.base.sms.message.SmsMessage.Builder
 
TemplateManager - Class in cloud.opencode.base.sms.template
Template Manager - Manages SMS templates with caching and loading 模板管理器 - 管理短信模板,支持缓存和加载
TemplateParser - Class in cloud.opencode.base.sms.template
Template Parser 模板解析器
TemplateParser.ValidationResult - Record Class in cloud.opencode.base.sms.template
Validation Result 验证结果
tencent(String) - Static method in record class cloud.opencode.base.sms.config.ProviderConfig
Creates a default Tencent configuration.
TENCENT - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
Tencent Cloud SMS (腾讯云短信)
TencentSmsConfig(String, String, String, String, String) - Constructor for record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Create configuration with validation 创建带验证的配置
TencentSmsSender - Class in cloud.opencode.base.sms.provider
Tencent Cloud SMS Sender 腾讯云短信发送器
TencentSmsSender.TencentSmsConfig - Record Class in cloud.opencode.base.sms.provider
Tencent SMS Configuration 腾讯云短信配置
timeout() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns the value of the timeout record component.
timeout() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns the value of the timeout record component.
timeout(String) - Static method in exception class cloud.opencode.base.sms.exception.SmsSendException
 
timeout(Duration) - Method in class cloud.opencode.base.sms.batch.BatchSender.Builder
Set timeout 设置超时
timeout(Duration) - Method in class cloud.opencode.base.sms.config.ProviderConfig.Builder
Sets the request timeout.
timeout(Duration) - Method in class cloud.opencode.base.sms.config.SmsConfig.Builder
 
timestamp() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns the value of the timestamp record component.
toRegistry() - Method in class cloud.opencode.base.sms.template.TemplateManager
Creates a registry from this manager.
toString() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.config.HttpSmsConfig
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.config.ProviderConfig
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.sms.config.SecureSmsConfig
 
toString() - Method in record class cloud.opencode.base.sms.config.SmsConfig
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.message.SmsMessage
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.message.SmsResult
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.provider.AliSmsSender.AliSmsConfig
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.provider.HuaweiSmsSender.HuaweiSmsConfig
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.provider.TencentSmsSender.TencentSmsConfig
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Returns a string representation of this record class.
total() - Method in record class cloud.opencode.base.sms.batch.BatchSender.BatchProgress
Returns the value of the total record component.
TOTAL - Enum constant in enum class cloud.opencode.base.sms.exception.SmsTimeoutException.TimeoutType
Total operation timeout | 总操作超时
totalCount() - Method in record class cloud.opencode.base.sms.batch.BatchResult
Returns the value of the totalCount record component.
tryAcquire(String) - Method in class cloud.opencode.base.sms.validation.SmsRateLimiter
Try to acquire permit 尝试获取许可
TWILIO - Enum constant in enum class cloud.opencode.base.sms.config.SmsProviderType
Twilio SMS

U

unregister(String) - Method in class cloud.opencode.base.sms.template.SmsTemplateRegistry
Unregister template 取消注册模板
unregister(String) - Method in class cloud.opencode.base.sms.template.TemplateManager
Unregisters a template.
unregisterProvider(SmsProviderType) - Static method in class cloud.opencode.base.sms.provider.SmsProviderFactory
Unregister provider factory 取消注册提供商工厂
UNSUPPORTED_COUNTRY - Enum constant in enum class cloud.opencode.base.sms.exception.SmsErrorCode
 
Usage Example | 使用示例 - Section in class cloud.opencode.base.sms.provider.HuaweiSmsSender
 

V

valid() - Method in record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Returns the value of the valid record component.
validate(String) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Validate phone number and throw if invalid 验证手机号,无效则抛出异常
validate(String, Map) - Method in class cloud.opencode.base.sms.template.TemplateParser
Validate template has all required variables 验证模板包含所有必需变量
validateAll() - Method in class cloud.opencode.base.sms.template.TemplateManager
Validates all templates.
validateAll(List) - Static method in class cloud.opencode.base.sms.validation.PhoneValidator
Validate all phone numbers 验证所有手机号
validateContent(String) - Method in class cloud.opencode.base.sms.provider.AbstractSmsProvider
Validate content 验证内容
validateMessage(SmsMessage) - Method in class cloud.opencode.base.sms.provider.AbstractSmsProvider
Validate message 验证消息
validateMessage(SmsMessage) - Method in class cloud.opencode.base.sms.provider.ConsoleSmsProvider
 
validatePhoneNumber(String) - Method in class cloud.opencode.base.sms.provider.AbstractSmsProvider
Validate phone number 验证手机号码
validatePhones(boolean) - Method in class cloud.opencode.base.sms.batch.BatchSender.Builder
Set phone validation 设置手机号验证
validateVariables(SmsTemplate, Map) - Method in class cloud.opencode.base.sms.template.TemplateManager
Validates template variables.
ValidationResult(boolean, List, List, List) - Constructor for record class cloud.opencode.base.sms.template.TemplateParser.ValidationResult
Creates an instance of a ValidationResult record class.
valueOf(String) - Static method in enum class cloud.opencode.base.sms.config.SmsProviderType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.sms.exception.SmsErrorCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.sms.exception.SmsTimeoutException.TimeoutType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class cloud.opencode.base.sms.config.SmsProviderType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.sms.exception.SmsErrorCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.sms.exception.SmsTimeoutException.TimeoutType
Returns an array containing the constants of this enum class, in the order they are declared.
variable(String, String) - Method in class cloud.opencode.base.sms.message.SmsMessage.Builder
 
variableMissing(String, String) - Static method in exception class cloud.opencode.base.sms.exception.SmsTemplateException
 
variableNames() - Method in record class cloud.opencode.base.sms.template.SmsTemplate
Returns the value of the variableNames record component.
variables() - Method in record class cloud.opencode.base.sms.message.SmsMessage
Returns the value of the variables record component.
variables(Map) - Method in class cloud.opencode.base.sms.message.SmsMessage.Builder
 

W

withPattern(Pattern) - Static method in class cloud.opencode.base.sms.template.TemplateParser
Create parser with pattern 使用模式创建解析器
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form