View Javadoc
1   package org.codehaus.mojo.webstart;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.util.List;
23  import java.util.Map;
24  import java.util.Set;
25  
26  /**
27   * Represents a resolved jnlpFile.
28   * <p/>
29   * Created on 10/29/13.
30   *
31   * @author Tony Chemit <chemit@codelutin.com>
32   * @since 1.0-beta-4
33   */
34  public class ResolvedJnlpFile
35  {
36      /**
37       * The user config (from pom).
38       */
39      private final JnlpFile config;
40  
41      /**
42       * The resolved jar resources (contains resolved configured jar resources, resolved common jar
43       * resources + transitive jar resources if needed).
44       */
45      private final Set<ResolvedJarResource> jarResources;
46  
47      private String inputTemplate;
48  
49      public ResolvedJnlpFile( JnlpFile config, Set<ResolvedJarResource> jarResources )
50      {
51          this.config = config;
52          this.jarResources = jarResources;
53          this.inputTemplate = this.config.getInputTemplate();
54      }
55  
56      public String getOutputFilename()
57      {
58          return config.getOutputFilename();
59      }
60  
61      public String getMainClass()
62      {
63          return config.getMainClass();
64      }
65  
66      public Map<String, String> getProperties()
67      {
68          return config.getProperties();
69      }
70  
71      public List<String> getArguments()
72      {
73          return config.getArguments();
74      }
75  
76      public String getInputTemplateResourcePath()
77      {
78          return config.getInputTemplateResourcePath();
79      }
80  
81      public Set<ResolvedJarResource> getJarResources()
82      {
83          return jarResources;
84      }
85  
86      public String getInputTemplate()
87      {
88          return inputTemplate;
89      }
90  
91      public void setInputTemplate( String inputTemplate )
92      {
93          this.inputTemplate = inputTemplate;
94      }
95  }