KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > deployment > NetBootFile


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package org.jboss.deployment;
9
10 /**
11  * Represents a file/directory representation read from a distant HTTP server
12  *
13  * @see org.jboss.deployment.NetBootHelper
14  *
15  * @author <a HREF="mailto:sacha.labourey@cogito-info.ch">Sacha Labourey</a>.
16  * @version $Revision: 1.3 $
17  *
18  * <p><b>Revisions:</b>
19  *
20  * <p><b>7 novembre 2002 Sacha Labourey:</b>
21  * <ul>
22  * <li> First implementation </li>
23  * </ul>
24  */

25
26 public class NetBootFile
27 {
28    
29    // Constants -----------------------------------------------------
30

31    // Attributes ----------------------------------------------------
32

33    String JavaDoc name = null;
34    long size = 0;
35    long lastModified = 0;
36    boolean isDirectory = false;
37    String JavaDoc lister = null;
38
39    // Static --------------------------------------------------------
40

41    // Constructors --------------------------------------------------
42

43    public NetBootFile () {}
44
45    public NetBootFile (String JavaDoc name, long size, long lastModified, boolean isDir, String JavaDoc lister)
46    {
47       this.name = name;
48       this.size = size;
49       this.lastModified = lastModified;
50       this.isDirectory = isDir;
51       this.lister = lister;
52    }
53    
54    // Public --------------------------------------------------------
55

56    public String JavaDoc getName ()
57    {
58       return this.name;
59    }
60    
61    public long getSize ()
62    {
63       return this.size;
64    }
65    
66    public long LastModified ()
67    {
68       return this.lastModified;
69    }
70    
71    public boolean isDirectory()
72    {
73       return this.isDirectory;
74    }
75    
76    public String JavaDoc getListerUrl ()
77    {
78       return this.lister;
79    }
80    
81    // Z implementation ----------------------------------------------
82

83    // Y overrides ---------------------------------------------------
84

85    // Package protected ---------------------------------------------
86

87    // Protected -----------------------------------------------------
88

89    // Private -------------------------------------------------------
90

91    // Inner classes -------------------------------------------------
92

93 }
94
Popular Tags