소스 검색

Fixed a problem with example code in article "Letting The User Download A File" (#11971)

Fixes #10580
tags/8.11.0.beta1
Martín López 4 년 전
부모
커밋
dbfa4cf3f3
No account linked to committer's email address
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9
    2
      documentation/articles/LettingTheUserDownloadAFile.asciidoc

+ 9
- 2
documentation/articles/LettingTheUserDownloadAFile.asciidoc 파일 보기

@@ -104,8 +104,15 @@ public class OnDemandFileDownloader extends FileDownloader {
return super.handleConnectorRequest(request, response, path);
}

private StreamResource getResource () {
return (StreamResource) this.getResource("dl");
private StreamResource getResource() {
StreamResource result = null;
this.getSession().lock();
try {
result = (StreamResource) this.getResource("dl");
} finally {
this.getSession().unlock();
}
return result;
}
}
....

Loading…
취소
저장