查看: 1748|回复: 2

[onlyOffice控件] 后台方法入口问题

升级   8.67%

5

主题

8

回帖

63

积分

注册会员

Rank: 2

积分
63
发表于 2023-9-4 23:08:41 | 显示全部楼层 |阅读模式
请问大家,后台请求的这个路径方法入口在哪里啊 /x_program_center/jaxrs/invoke/officeOnlineSrv/execute?v=o2oa

源码中只找到以下这个
@WebFilter(urlPatterns = "/jaxrs/invoke/*", asyncSupported = true)
public class InvokeJaxrsFilter extends AnonymousCipherManagerUserJaxrsFilter {

}

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

升级   8.67%

5

主题

8

回帖

63

积分

注册会员

Rank: 2

积分
63
发表于 2023-9-5 00:43:28 | 显示全部楼层
好像是这个公用方法,具体参数实现不太明白       

@JaxrsMethodDescribe(value = "执行调用接口.", action = ActionExecute.class)
        @POST
        @Path("{flag}/execute")
        @Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
        @Consumes(MediaType.APPLICATION_JSON)
        public void execute(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
                        @JaxrsParameterDescribe("标识") @PathParam("flag") String flag, JsonElement jsonElement) {
                ActionResult<Object> result = new ActionResult<>();
                EffectivePerson effectivePerson = this.effectivePerson(request);
                try {
                        result = new ActionExecute().execute(request, effectivePerson, flag, jsonElement);
                } catch (Exception e) {
                        logger.error(e, effectivePerson, request, jsonElement);
                        result.error(e);
                }
                asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result, jsonElement));
        }
回复

使用道具 举报

升级   100%

138

主题

1万

回帖

3万

积分

超级版主

Rank: 8Rank: 8

积分
37365
发表于 2023-9-5 09:56:15 | 显示全部楼层
这个是执行了服务管理中的名为officeOnlineSrv的接口
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread