@WebMethod
public
@XmlMimeType("application/octet-stream")
DataHandler getContent(@WebParam(name = "token") String token, @WebParam(name = "docPath") String docPath,
@WebParam(name = "checkout") boolean checkout) throws RepositoryException, IOException, PathNotFoundException,
AccessDeniedException, DatabaseException {
log.debug("getContent({}, {}, {})", new Object[]{token, docPath, checkout});
DocumentModule dm = ModuleManager.getDocumentModule();
InputStream is = dm.getContent(token, docPath, checkout);
DataHandler data = new DataHandler(new DhDatasource(is, null, docPath));
log.debug("getContent: {}", data);
return data;
}
DocumentService.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:document-management-system
作者:
评论列表
文章目录