1 package org.codehaus.mojo.webstart.generator;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.codehaus.mojo.webstart.ResolvedJarResource;
23
24 import java.util.Collection;
25 import java.util.List;
26 import java.util.Map;
27
28
29
30
31
32
33
34 public class JarResourceGeneratorConfig
35 implements GeneratorExtraConfig
36 {
37
38 private final Collection<ResolvedJarResource> jarResources;
39
40 private final String libPath;
41
42 private final String codebase;
43
44 private final Map<String, String> properties;
45
46 private List<String> arguments;
47
48 public JarResourceGeneratorConfig( Collection<ResolvedJarResource> jarResources, String libPath, String codebase,
49 Map<String, String> properties, List<String> arguments )
50 {
51 this.jarResources = jarResources;
52 this.libPath = libPath;
53 this.codebase = codebase;
54 this.properties = properties;
55 this.arguments = arguments;
56 }
57
58 public Collection<ResolvedJarResource> getJarResources()
59 {
60 return jarResources;
61 }
62
63 public String getLibPath()
64 {
65 return libPath;
66 }
67
68
69
70
71 public String getJnlpSpec()
72 {
73 return "1.0+";
74 }
75
76
77
78
79 public String getOfflineAllowed()
80 {
81 return "false";
82 }
83
84
85
86
87 public String getAllPermissions()
88 {
89 return "true";
90 }
91
92
93
94
95 public String getJ2seVersion()
96 {
97 return "1.5+";
98 }
99
100
101
102
103 public String getJnlpCodeBase()
104 {
105 return codebase;
106 }
107
108
109
110
111 public Map<String, String> getProperties()
112 {
113 return properties;
114 }
115
116 public List<String> getArguments()
117 {
118 return arguments;
119 }
120 }