| Package | Description |
|---|---|
| net.gdface.sdk | |
| net.gdface.sdk.decorator | |
| net.gdface.sdk.thrift | |
| net.gdface.service.sdk | |
| net.gdface.service.sdk.spring |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseFaceApi
FaceApi抽象实现,SDK接口类必须从此类派生 |
class |
BaseFaceApiLocal
|
class |
FaceApiDecorator
decorator pattern 装饰者模式实现
FaceApi接口转发所有 FaceApi接口方法到FaceApiDecorator.delegate()指定的实例,unchecked后缀的方法将所有显式申明的异常封装到 RuntimeException抛出计算机生成代码(generated by automated tools DecoratorGenerator @author guyadong) |
class |
FaceApiGenericDecorator
decorator pattern 装饰者模式实现基于
FaceApiDecorator的支持泛型方法参数FaceApi接口所有 byte[] 类型的参数都支持泛型参数,参见 BinaryUtils.getBytesNotEmpty(Object)注意: 参数为 InputStream的方法返回时会自动执行InputStream.close()关闭流参见 BinaryUtils.readBytes(java.io.InputStream)unchecked后缀的方法将所有显式申明的异常封装到 RuntimeException抛出计算机生成代码(generated by automated tools DecoratorGenerator @author guyadong) |
| Modifier and Type | Method and Description |
|---|---|
FaceApi |
FaceApiDecorator.delegate() |
protected FaceApi |
FaceApiSpringController.delegate() |
FaceApi |
FaceApiSpringController.InstanceSupplier.instanceOfFaceApi() |
| Modifier and Type | Method and Description |
|---|---|
static FeatureSe |
BaseFaceApi.getFeatureSeInstance(FaceApi faceapi)
|
static FaceApiDecorator |
FaceApiDecorator.makeDecorator(FaceApi instance)
将
FaceApi 对象封装为 FaceApiDecorator 实例如果 FaceApi 已经是 FaceApiDecorator 则返回 FaceApi} |
| Constructor and Description |
|---|
FaceApiDecorator(FaceApi delegate) |
FaceApiGenericDecorator(FaceApi delegate) |
| Modifier and Type | Method and Description |
|---|---|
FaceApi |
FaceApiThriftDecorator.delegate() |
| Constructor and Description |
|---|
FaceApiThriftDecorator(FaceApi delegate) |
| Modifier and Type | Class and Description |
|---|---|
class |
FaceApiThriftClient
基于thrift/swift框架生成的client端代码提供
FaceApi接口的RPC实现(线程安全)转发所有 FaceApi接口方法到FaceApiThriftClient.delegate()指定的实例所有服务端抛出的 RuntimeException异常被封装到ServiceRuntimeException中抛出Example: |
| Modifier and Type | Method and Description |
|---|---|
FaceApi |
FaceApiServiceConfig.getFaceapi() |
| Modifier and Type | Method and Description |
|---|---|
static void |
RestfulService.setInterfaceInstance(FaceApi apiInstance)
设置
FaceApi实例 |
Copyright © 2020. All rights reserved.