public abstract class EngineHandlerInfo extends Object
Constructor and Description |
---|
EngineHandlerInfo(String endpoint,
Method handlerMethod,
List<EngineFunctionParamInfo> params,
Class<?> returnType) |
EngineHandlerInfo(String endpoint,
Method handlerMethod,
List<EngineFunctionParamInfo> params,
Class<?> returnType,
String hookClass) |
Modifier and Type | Method and Description |
---|---|
Object |
execute(javax.servlet.http.HttpServletRequest request,
boolean rpcCall) |
String |
getEndPoint() |
static EngineHandlerInfo |
getEngineHandlerInfo(Method method,
EngineFunction function) |
static EngineHandlerInfo |
getEngineHandlerInfo(Method method,
EngineHook hook) |
static EngineHandlerInfo |
getEngineHandlerInfo(Method method,
IMHook hook) |
Method |
getHandlerMethod() |
List<EngineFunctionParamInfo> |
getParamList() |
abstract Object |
parseParams(String requestBody) |
Object |
wrapperResponse(Object returnValue,
String requestBody,
boolean rpcCall) |
public EngineHandlerInfo(String endpoint, Method handlerMethod, List<EngineFunctionParamInfo> params, Class<?> returnType)
public Method getHandlerMethod()
public String getEndPoint()
public List<EngineFunctionParamInfo> getParamList()
public Object execute(javax.servlet.http.HttpServletRequest request, boolean rpcCall) throws Exception
Exception
public abstract Object parseParams(String requestBody) throws cn.leancloud.InvalidParameterException
cn.leancloud.InvalidParameterException
public Object wrapperResponse(Object returnValue, String requestBody, boolean rpcCall)
public static EngineHandlerInfo getEngineHandlerInfo(Method method, EngineFunction function)
public static EngineHandlerInfo getEngineHandlerInfo(Method method, EngineHook hook)
public static EngineHandlerInfo getEngineHandlerInfo(Method method, IMHook hook)
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.