View Javadoc
1   package org.owasp.dependencycheck.data.artifactory;
2   
3   import java.util.Date;
4   
5   /**
6    * Copied from JFrog's artifactory client.
7    *
8    * @see
9    * <a href="https://github.com/jfrog/artifactory-client-java">artifactory-client-java</a>
10   *
11   * @author jbaruch
12   * @since 29/07/12
13   */
14  public class FileImpl extends ItemImpl {
15  
16      private String downloadUri;
17      private Date created;
18      private String createdBy;
19      private long size;
20      private String mimeType;
21      private ChecksumsImpl checksums;
22      private ChecksumsImpl originalChecksums;
23      private String remoteUrl;
24  
25      public boolean isFolder() {
26          return false;
27      }
28  
29      public Date getCreated() {
30          return new Date(created.getTime());
31      }
32  
33      public void setCreated(Date created) {
34          this.created = new Date(created.getTime());
35      }
36  
37      public String getCreatedBy() {
38          return createdBy;
39      }
40  
41      public void setCreatedBy(String createdBy) {
42          this.createdBy = createdBy;
43      }
44  
45      public String getDownloadUri() {
46          return downloadUri;
47      }
48  
49      public void setDownloadUri(String downloadUri) {
50          this.downloadUri = downloadUri;
51      }
52  
53      public String getMimeType() {
54          return mimeType;
55      }
56  
57      public void setMimeType(String mimeType) {
58          this.mimeType = mimeType;
59      }
60  
61      public long getSize() {
62          return size;
63      }
64  
65      public void setSize(long size) {
66          this.size = size;
67      }
68  
69      public ChecksumsImpl getChecksums() {
70          return checksums;
71      }
72  
73      public void setChecksums(ChecksumsImpl checksums) {
74          this.checksums = checksums;
75      }
76  
77      public ChecksumsImpl getOriginalChecksums() {
78          return originalChecksums;
79      }
80  
81      public void setOriginalChecksums(ChecksumsImpl originalChecksums) {
82          this.originalChecksums = originalChecksums;
83      }
84  
85      public String getRemoteUrl() {
86          return remoteUrl;
87      }
88  
89      public void setRemoteUrl(String remoteUrl) {
90          this.remoteUrl = remoteUrl;
91      }
92  }