@JsonRpcMethod("Test.custom2") String customMethod2(String stringParam1);
private static String getMethodName(Method method) { final JsonRpcMethod jsonRpcMethod = ReflectionUtil.getAnnotation(method, JsonRpcMethod.class); if (jsonRpcMethod == null) { return method.getName(); } else { return jsonRpcMethod.value(); } }
JsonRpcMethod jsonRpcMethod = getAnnotation(method, JsonRpcMethod.class); if (jsonRpcMethod != null) paramsPassMode = jsonRpcMethod.paramsPassMode();
private static String getMethodName(Method method) { final JsonRpcMethod jsonRpcMethod = ReflectionUtil.getAnnotation(method, JsonRpcMethod.class); if (jsonRpcMethod == null) { return method.getName(); } return jsonRpcMethod.value(); } }
@JsonRpcMethod(value="diffMethodName", required=true) void objectParamSameName(Object2 obj); }
@JsonRpcMethod("varargPrimitiveMethod") String varargPrimitiveMethod(int... ints);
@JsonRpcMethod("Test.custom") String customMethod();
@JsonRpcMethod(value = "noNamedParamsPassParamsArray", paramsPassMode = JsonRpcParamsPassMode.ARRAY) void noNamedParamsPassParamsArray(String one, int two);
@JsonRpcMethod("varargObjectMethod") String varargObjectMethod(Object... params);
@JsonRpcMethod("Test.custom2") String customMethod2(String stringParam1); }
@JsonRpcMethod("Test.custom") String customMethod();
@JsonRpcMethod(value = "noNamedParamsPassParamsAuto", paramsPassMode = JsonRpcParamsPassMode.AUTO) void noNamedParamsPassParamsAuto(String one, int two);
@JsonRpcMethod(value = "noNamedParamsPassParamsObject", paramsPassMode = JsonRpcParamsPassMode.OBJECT) void noNamedParamsPassParamsObject(String one, int two);
@JsonRpcMethod("mixedObjectPrimitiveVarargMethodWithWebParam") String mixedObjectPrimitiveVarargMethodWithWebParam(@WebParam(name = "object") Object test, @WebParam(name = "ints") int... ints);
@JsonRpcMethod("varargPrimitiveMethodWithWebParam") String varargPrimitiveMethodWithWebParam(@WebParam(name = "ints") int... ints);
@JsonRpcMethod("varargStringMethodWithWebParam") String varargStringMethodWithWebParam(@WebParam(name = "strings") String... strings);
@JsonRpcMethod("mixedObjectStringVarargMethodWithWebParam") String mixedObjectStringVarargMethodWithWebParam(@WebParam(name = "object") Object test, @WebParam(name = "strings") String... strings);
@JsonRpcMethod(value = "someNamedParamsPassParamsArray", paramsPassMode = JsonRpcParamsPassMode.ARRAY) void someNamedParamsPassParamsArray(@JsonRpcParam("one") String one, int two);
@JsonRpcMethod("varargPrimitiveMethodWithJsonRpcParam") String varargPrimitiveMethodWithJsonRpcParam(@JsonRpcParam("ints") int... ints);