类 AbstractCostInterceptor
- java.lang.Object
-
- com.aispeech.export.interceptor.AbstractCostInterceptor
-
- 所有已实现的接口:
IInterceptor
- 直接已知子类:
AsrInterceptor,DoaInterceptor,NluInterceptor,TTSInterceptor,VadInterceptor,WakeupInterceptor
public abstract class AbstractCostInterceptor extends java.lang.Object implements IInterceptor
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.aispeech.export.interceptor.IInterceptor
IInterceptor.FlowType, IInterceptor.Layer, IInterceptor.Name
-
-
构造器概要
构造器 构造器 说明 AbstractCostInterceptor()
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 static org.json.JSONObjectgetInputObj(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom)构造拦截器输入对象abstract org.json.JSONObjecthandleIntercept(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom)自定义拦截处理逻辑java.lang.Objectintercept(org.json.JSONObject inputObj)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.aispeech.export.interceptor.IInterceptor
getName
-
-
-
-
方法详细资料
-
getInputObj
public static org.json.JSONObject getInputObj(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom)构造拦截器输入对象- 参数:
layer- sdk 层级,如:IInterceptor.LayerflowType- 边界流向类型,取值:IInterceptor.FlowTypecustom- 自定义参数- 返回:
- JSONObject
-
intercept
public java.lang.Object intercept(org.json.JSONObject inputObj)
- 指定者:
intercept在接口中IInterceptor
-
handleIntercept
public abstract org.json.JSONObject handleIntercept(java.lang.String layer, java.lang.String flowType, org.json.JSONObject custom)自定义拦截处理逻辑- 参数:
layer- sdk 层级,如:IInterceptor.LayerflowType- 边界流向类型,取值:IInterceptor.FlowTypecustom- 自定义参数- 返回:
- JSONObject inputObj
-
-