# icp-cloud
**Repository Path**: Jakewabc/icp-cloud
## Basic Information
- **Project Name**: icp-cloud
- **Description**: 提供域名备案查询,`whois`查询.
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-12-08
- **Last Updated**: 2024-12-11
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 域名备案查询`whois`查询
> 提供域名备案查询,`whois`查询.
>
> 当前项目并没有上传到`maven`公共仓库中,所以开发者需要打包安装到`maven`本地仓库才可以使用,下面有详细教程.
[项目地址gitee](https://gitee.com/Jakewabc/icp-cloud.git)
# 一、使用教程
- 将项目安装到本地仓库

- 在`pom.xml`中引入
```xml
io.github.gl-stars
icp-cloud
1.0.0
```
- 使用
继承 `IcpService`类,调用该类中 `fetchDomain`方法即可.
```java
/**
* 获取域名备案信息
* @param domainList 需要查询的域名
* @param accessKey ak
* @param secretKey sk
* @return
*/
public DomainIopVO fetchDomain(List domainList,String accessKey,String secretKey) throws IOException {
略...
}
```
- 范例
```java
public class DomainService extends IcpService {
public static void main(String[] args) throws IOException {
DomainService domainService = new DomainService();
// 需要查询的域名
List domainList = new ArrayList<>();
domainList.add("www.baidu.com");
domainList.add("jd.com");
domainList.add("www.google.com");
domainList.add("taobao.com");
DomainIopVO domainIopVO = domainService.fetchDomain(domainList,null,null);
// 备案的域名
List icpList = domainIopVO.getIcpList();
// 没有备案的域名
List noList = domainIopVO.getNoList();
}
}
```


