Apache Wicket 10.x Reference Guide
simply write code like this: Java: URI uri = URI.create("jar:file:///videosFolder/videos.zip!/folderInZip/Video.mp4"); Path path = FileSystemResourceReference.getPath(uri); FileSystemResourceReference ref String name = attributes.getParameters().get("name").toString(""); URI uri = URI.create( "jar:file:////folder/example.zip!/zipfolder/" + name); return createResourceResponse( FileSystemResourceReference.getPath(uri)); } catch (IOException | URISyntaxException e) {0 码力 | 336 页 | 7.16 MB | 1 年前3Apache Wicket 9.x Reference Guide
simply write code like this: Java: URI uri = URI.create("jar:file:///videosFolder/videos.zip!/folderInZip/Video.mp4"); Path path = FileSystemResourceReference.getPath(uri); FileSystemResourceReference ref String name = attributes.getParameters().get("name").toString(""); URI uri = URI.create( "jar:file:////folder/example.zip!/zipfolder/" + name); return createResourceResponse( FileSystemResourceReference.getPath(uri)); } catch (IOException | URISyntaxException e) {0 码力 | 335 页 | 7.15 MB | 1 年前3Apache Wicket 8.x Reference Guide
simply write code like this: Java: URI uri = URI.create("jar:file:///videosFolder/videos.zip!/folderInZip/Video.mp4"); Path path = FileSystemResourceReference.getPath(uri); FileSystemResourceReference ref String name = attributes.getParameters().get("name").toString(""); URI uri = URI.create( "jar:file:////folder/example.zip!/zipfolder/" + name); return createResourceResponse( FileSystemResourceReference.getPath(uri)); } catch (IOException | URISyntaxException e) {0 码力 | 350 页 | 9.95 MB | 1 年前3Apache Wicket 7.x Reference Guide
simply write code like this: Java: URI uri = URI.create("jar:file:///videosFolder/videos.zip!/folderInZip/Video.mp4"); Path path = FileSystemResourceReference.getPath(uri); FileSystemResourceReference ref String name = attributes.getParameters().get("name").toString(""); URI uri = URI.create( "jar:file:////folder/example.zip!/zipfolder/" + name); return createResourceResponse( FileSystemResourceReference.getPath(uri)); } catch (IOException | URISyntaxException e) {0 码力 | 346 页 | 10.00 MB | 1 年前3
共 4 条
- 1