Class FromPathParameterHandler
java.lang.Object
cool.scx.web.parameter_handler.from_path.FromPathParameterHandler
- All Implemented Interfaces:
ParameterHandler
FromPathParameterHandler
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionFromPathParameterHandler(FromPath fromPath, cool.scx.reflect.ParameterInfo parameter) -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetValueFromPath(String name, boolean merge, boolean required, cool.scx.reflect.TypeInfo javaType, RequestInfo info) handle(RequestInfo requestInfo) 将结果处理并返回
-
Constructor Details
-
FromPathParameterHandler
-
-
Method Details
-
getValueFromPath
public static Object getValueFromPath(String name, boolean merge, boolean required, cool.scx.reflect.TypeInfo javaType, RequestInfo info) throws RequiredParamEmptyException, ParamConvertException -
handle
Description copied from interface:ParameterHandler将结果处理并返回- Specified by:
handlein interfaceParameterHandler- Parameters:
requestInfo- 包装后的 RoutingContext- Returns:
- 处理后的结果
- Throws:
Exception- e
-